Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

K2 with SImple Image Gallery Pro v.2.0.5 Not work?

  • Ido Lempert PPC-IDORAN
  • Ido Lempert PPC-IDORAN's Avatar Topic Author
  • Offline
  • New Member
More
14 years 5 months ago #34452 by Ido Lempert PPC-IDORAN
K2 with SImple Image Gallery Pro v.2.0.5 Not work? was created by Ido Lempert PPC-IDORAN
I got an error message I'm trying to upload a zip file through K2
"
* UNKNOWNARCHIVETYPE
* Gallery upload error: Cannot extract archive!
"

* When I do it on the local server (XAMP) - no problem.
* I had write access to folders - tmp, log, media/k2/gallery
?

Please Log in or Create an account to join the conversation.

  • Ido Lempert PPC-IDORAN
  • Ido Lempert PPC-IDORAN's Avatar Topic Author
  • Offline
  • New Member
More
14 years 5 months ago #34453 by Ido Lempert PPC-IDORAN
Replied by Ido Lempert PPC-IDORAN on topic Re: K2 with SImple Image Gallery Pro v.2.0.5 Not work?
I read here
joomlaforum.ru/index.php?topic=84960.0
To allow the function exec.
(I do not read Russian .Translate with Chrome :) )

I spoke with the host. He said it is very dangerous because that they canceled it.
Is that one caused the problem? If so, how to skip the use of a function?

Please Log in or Create an account to join the conversation.

  • Ido Lempert PPC-IDORAN
  • Ido Lempert PPC-IDORAN's Avatar Topic Author
  • Offline
  • New Member
More
14 years 5 months ago #34454 by Ido Lempert PPC-IDORAN
Replied by Ido Lempert PPC-IDORAN on topic Re: K2 with SImple Image Gallery Pro v.2.0.5 Not work?
YESSSS!!! :)

K it's workingץ
(Probably ruined the code)

I was change the file
"class.upload.php"
in
/administrator/components/com_k2/lib

Line 2443
if (strlen($mime = @exec("file -bi ".escapeshellarg($this->file_src_pathname))) != 0) {
To
if (FALSE) {

Please Log in or Create an account to join the conversation.

More
14 years 5 months ago #34455 by Thomas8098
- Woo i will surely post this information on my site.

Regards

Thomas

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #34456 by imdw
Hallo. I have the same problem but in line 2443 there ihave this
$this->file_src_mime = $mime;

the full section is
if (is_resource($f)) {
                            $mime = finfo_file($f, realpath($this->file_src_pathname));
                            finfo_close($f);
                            $this->file_src_mime = $mime;
                            $this->log .= '    MIME type detected as ' . $this->file_src_mime . ' by Fileinfo PECL extension
';

some body know how to solve??

Thanks and best bregards

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum