Keyword

Gallery upload error. Cannot extract archive.

  • Pablo Martinez
  • Pablo Martinez's Avatar Topic Author
  • Offline
  • New Member
More
12 years 11 months ago #56861 by Pablo Martinez
Gallery upload error. Cannot extract archive. was created by Pablo Martinez
Hi

When I try to upload a zip file in Image Gallery I get this error:

Unknown Archive type
Gallery upload error. Cannot extract archive.

Joonmla V 1.7.1 with K2 V 2.5 Stable
My server have zip feature configured and the max upload file size is 300 MB.
My zip file have just 150 KB

My zip is in correct format, I am sure about because the same zip file was upload without error in another site with Joomla 1.5.23 and K2 V 2.4.1

Any idea ?

thanks,

Pablo

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

More
12 years 11 months ago #56862 by Simon Wells
Replied by Simon Wells on topic Re: Gallery upload error. Cannot extract archive.
Just testing this now.

Simon

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

More
12 years 11 months ago #56863 by Simon Wells
Replied by Simon Wells on topic Re: Gallery upload error. Cannot extract archive.
Hi Pablo,

Sorry, I am having issues with obtaining SIG Pro for 1.7 at the moment so cant give an immediate reply.
Unless you able to send me a copy directly (email) so I can test, we might have to wait until the next user can test or until I get my update.

Regards,

Simon

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

More
12 years 10 months ago #56864 by Debbie Lane
Replied by Debbie Lane on topic Re: Gallery upload error. Cannot extract archive.
I've just upgraded from Joomla 1.5.23 to 1.5.25 and K2 from 2.4 to 2.5 and I'm having the same problem

UNKNOWNARCHIVETYPE
Gallery upload error. Cannot extract archive.

Zip files uploaded to Image Gallery fine before the upgrades!

Technically Blonde
www.andiamoinpuglia.co.uk

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

More
12 years 10 months ago #56865 by DJ Enterprises
Replied by DJ Enterprises on topic Re: Gallery upload error. Cannot extract archive.
Here i found the fix

/administrator/components/com_k2/lib/class.upload.php

After in the same file change (line 2231)
$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.

More
12 years 6 months ago #56866 by John Dempsey
Replied by John Dempsey on topic Re: Gallery upload error. Cannot extract archive.
zip repairing archives crashed by system errors, power failures, malware, etc. Tool extracts, analyzes and repairs corrupted .zip files, it repairs encrypted data from ZIP archives. Software recovers self-extracting (SFX) archives. If you want test tool facilities download demo.

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

More
11 years 8 months ago #56867 by totalwebshops
Replied by totalwebshops on topic Re: Gallery upload error. Cannot extract archive.
Hi guys,

Same problem here:
Unknown Archive type
Gallery upload error. Cannot extract archive.
Using:
Joomla 2.5.8,
K2 v2.6.2,
Simple Image Gallery Pro plg_jw_sigpro-v2.6.0_j1.5-2.5-3.0.zip

Earlier mentioned solution implemented on line 2868 of file /administrator/components/com_k2/lib/class.upload.php :
Change:
$this->file_src_mime = mime_content_type($this->file_src_pathname);
To:
$this->file_src_mime = mime_content_type($this->file_src_name);


Makes no difference.

What to do now?

Kind regards,
Edze

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


Powered by Kunena Forum