Keyword

Archive cannot be extracted when gallery uploaded

  • LocaLiceR
  • LocaLiceR's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 4 months ago #68542 by LocaLiceR
I successfully installed Simple Image Gallery 1.2.1 for Joomla! 1.5. I enabled the plugin in the Plugin Manager. I opened an existing item to edit, then switched to the 'Image Gallery' tab. By clicking the 'Browse...' button I selected a zip file with 2 JPG images. I clicked the 'Apply' button on the toolbar.

The following error message was the result:

UNKNOWNARCHIVETYPE
Gallery upload error: Cannot extract archive!

How should this be fixed?

Environment: Apache 2.2.11, PHP 5.2.9-2, MySQL 5.1.33, Joomla! 1.5.11, Firefox 3.5, WampServer 2.0h

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

More
15 years 4 months ago #68543 by Ivo Apostolov
Replied by Ivo Apostolov on topic Archive cannot be extracted when gallery uploaded
Does your server support gzip?

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

  • LocaLiceR
  • LocaLiceR's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 4 months ago #68544 by LocaLiceR
Of course, Ivo.

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

More
15 years 4 months ago #68545 by Lefteris
Hi. What version of K2 are you using? Can you please attach the zip file you are trying to upload?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • LocaLiceR
  • LocaLiceR's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 4 months ago #68546 by LocaLiceR
Hi, Lefteris!

I'm using the latest, the best and the most beautiful K2 version (2.0.0 pre-release) :)

The zip I tried to upload is attached.

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

More
15 years 4 months ago #68547 by Lefteris
I uploaded your zip file with no problem. So the only thing i can do know is guessing. Can you check the permissions on folder media/galleries?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • LocaLiceR
  • LocaLiceR's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 4 months ago #68548 by LocaLiceR
Lefteris, as I know, there are no file/folder permissions on a Windows localhost :)

Which Simple Image Gallery version are you using? Have you tried a clean install with SIG 1.2.1 and the K2 2.0.0 pre-release?

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

More
15 years 4 months ago #68549 by FeSys
Sorry, Only the SIG Pro V.2 + will work for you

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

  • LocaLiceR
  • LocaLiceR's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 4 months ago #68550 by LocaLiceR
I suspected this. Thanks, Followeyes.

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

More
15 years 2 months ago #68551 by Kenneth Crowder
Replied by Kenneth Crowder on topic Archive cannot be extracted when gallery uploaded
I had this same problem. When uploading to the gallery, the mime type is checked and it appears that it was checking the path for the mime type and not the name of the file. There are several checks for mime type prior to the code I edited below, and even some after. It keeps trying different ones until it gets a hit. Unfortunately until I fixed the code, it was trying to call it a text file and not a zip file. Anyway, this is what I did:

File: \administrator\components\com_k2\lib\class.upload.php
Line: ~2231
Change...
$this->file_src_mime = mime_content_type($this->file_src_pathname);
...to...
$this->file_src_mime = mime_content_type($this->file_src_name);

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


Powered by Kunena Forum