COMMUNITY FORUM
Archive cannot be extracted when gallery uploaded
- LocaLiceR
- Topic Author
- Offline
- Junior Member
Less
More
15 years 4 months ago #68542
by LocaLiceR
Archive cannot be extracted when gallery uploaded was created 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
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.
- Ivo Apostolov
- Offline
- Senior Member
Less
More
- Posts: 62
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
- Topic Author
- Offline
- Junior Member
15 years 4 months ago #68544
by LocaLiceR
Replied by LocaLiceR on topic Archive cannot be extracted when gallery uploaded
Of course, Ivo.
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
15 years 4 months ago #68545
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Archive cannot be extracted when gallery uploaded
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
- Topic Author
- Offline
- Junior Member
15 years 4 months ago #68546
by LocaLiceR
Replied by LocaLiceR on topic Archive cannot be extracted when gallery uploaded
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.
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.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
15 years 4 months ago #68547
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Archive cannot be extracted when gallery uploaded
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
- Topic Author
- Offline
- Junior Member
15 years 4 months ago #68548
by LocaLiceR
Replied by LocaLiceR on topic Archive cannot be extracted when gallery uploaded
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?
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.
- FeSys
- Offline
- Elite Member
Less
More
- Posts: 262
15 years 4 months ago #68549
by FeSys
Replied by FeSys on topic Archive cannot be extracted when gallery uploaded
Sorry, Only the SIG Pro V.2 + will work for you
Please Log in or Create an account to join the conversation.
- LocaLiceR
- Topic Author
- Offline
- Junior Member
15 years 4 months ago #68550
by LocaLiceR
Replied by LocaLiceR on topic Archive cannot be extracted when gallery uploaded
I suspected this. Thanks, Followeyes.
Please Log in or Create an account to join the conversation.
- Kenneth Crowder
- Offline
- New Member
Less
More
- Posts: 5
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);
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.