Keyword

UNKNOWNARCHIVETYPE - K2 (SigPro) Image Gallery

  • Kurt Burkhart
  • Kurt Burkhart's Avatar Topic Author
  • Offline
  • New Member
More
15 years 7 months ago #72772 by Kurt Burkhart
UNKNOWNARCHIVETYPE - K2 (SigPro) Image Gallery was created by Kurt Burkhart
I've searched the forums and blogs (for both k2 and SIG Pro) and have yet to find a solution for this issue...

When I attempt to upload a gallery I get the: UNKNOWNARCHIVETYPE
Gallery upload error: Cannot extract archive! message.

I've added rar and zip to the legal file extensions via global config, changed the file paths to media/k2/galleries, switched to mootools via the sig pro settings page, and tested this via Firefox and IE - none of these things have fixed this issue for me.

At this point I would even be satisfied w/ a workaround where I could create a folder on my server and manually upload the images myself via cpanel - anything to get this functional.

Somebody please help me with this.

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

  • Kurt Burkhart
  • Kurt Burkhart's Avatar Topic Author
  • Offline
  • New Member
More
15 years 7 months ago #72773 by Kurt Burkhart
Replied by Kurt Burkhart on topic UNKNOWNARCHIVETYPE - K2 (SigPro) Image Gallery
Also FYI:
Sig Pro - 2.0.4
Joomla - 1.5.14
K2 - 2.1

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

More
15 years 7 months ago #72774 by Lefteris
Replied by Lefteris on topic UNKNOWNARCHIVETYPE - K2 (SigPro) Image Gallery
Hi. Can you please post the file you are trying to upload?

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

  • Kurt Burkhart
  • Kurt Burkhart's Avatar Topic Author
  • Offline
  • New Member
More
15 years 7 months ago #72775 by Kurt Burkhart
Replied by Kurt Burkhart on topic UNKNOWNARCHIVETYPE - K2 (SigPro) Image Gallery
Thanks for your response...

See attached -->

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

  • Kurt Burkhart
  • Kurt Burkhart's Avatar Topic Author
  • Offline
  • New Member
More
15 years 7 months ago #72776 by Kurt Burkhart
Replied by Kurt Burkhart on topic UNKNOWNARCHIVETYPE - K2 (SigPro) Image Gallery
Also: Out of desperation I switched out the "gallery" snippet of code from here:
code.google.com/p/joomlaworks/source/browse/trunk/K2/administrator/components/com_k2/models/item.php?spec=svn74&r=74
That got rid of the "Gallery upload error" but I'm still not getting any gallery preview or gallery images in media/k2.
And I didn't see any entries in my db table for gallery, although I'm not sure I was even looking in the correct place for those.

Thanks again.

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

  • Kurt Burkhart
  • Kurt Burkhart's Avatar Topic Author
  • Offline
  • New Member
More
15 years 7 months ago #72777 by Kurt Burkhart
Replied by Kurt Burkhart on topic UNKNOWNARCHIVETYPE - K2 (SigPro) Image Gallery
Scratch the above comment...
I retried this last night with no change in behavior - still getting Gallery upload error when adding zips.
& my appologies for the missinformation. The formatting was off on my earlier copy and paste which somehow prevented that error from showing but also seemingly eliminated all functionality for the gallery upload.

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

More
15 years 7 months ago #72778 by Valdis
One thing for sure - it works for some people. And it works with SIG free hacked for me and some others as well. This message IMHO comes from basic upload class which isn't even k2 specific (check source); so, it might be some server configuration issue. You might try to play with that upload class alone to nail down what's causing problems as specific k2/gallery code might be irrelevant for Your situation.

Al Burkhart said:Scratch the above comment... I retried this last night with no change in behavior - still getting Gallery upload error when adding zips.
& my appologies for the missinformation. The formatting was off on my earlier copy and paste which somehow prevented that error from showing but also seemingly eliminated all functionality for the gallery upload.

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

  • Kurt Burkhart
  • Kurt Burkhart's Avatar Topic Author
  • Offline
  • New Member
More
15 years 7 months ago #72779 by Kurt Burkhart
Replied by Kurt Burkhart on topic UNKNOWNARCHIVETYPE - K2 (SigPro) Image Gallery
It's strange how folks get differing results with this. I started with the free version of sig, added the underscore to the filename (which fixed k2's sig recognition issue), and still received the Gallery upload error. Re: server config, with k2 version 1.0.2b I'm able to upload zip files... and the contents unzip to a folder on my server - no error message.

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

More
15 years 7 months ago #72780 by Valdis
Well, it might be some problem with that update class - may be a bug in its/k2 code or some configuration problem or both as class in k2 current was updated in August. Probably k2 v1.* contained earlier version or whatever (I don't know as used only v.2.*). Apparently on some configurations it works just fine; on some not so.

Regards,
Valdis

P.S. Just to be clear on one thing - this class is a part of k2; so, until proven otherwise it might be a bug in k2 ;) I just hinted to it if You are willing to hunt down cause/solution Yourself.

Al Burkhart said:It's strange how folks get differing results with this. I started with the free version of sig, added the underscore to the filename (which fixed k2's sig recognition issue), and still received the Gallery upload error. Re: server config, with k2 version 1.0.2b I'm able to upload zip files... and the contents unzip to a folder on my server - no error message.

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

More
15 years 7 months ago #72781 by Kenneth Crowder
Replied by Kenneth Crowder on topic UNKNOWNARCHIVETYPE - K2 (SigPro) Image Gallery
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.

  • Kurt Burkhart
  • Kurt Burkhart's Avatar Topic Author
  • Offline
  • New Member
More
15 years 7 months ago #72782 by Kurt Burkhart
Replied by Kurt Burkhart on topic UNKNOWNARCHIVETYPE - K2 (SigPro) Image Gallery
Kenneth

This worked 100% - I can now upload zips and view my galleries via k2.
Thank you! so much for your help with this - sincerely... you saved me days of work trying to figure this thing out.


Kenneth Crowder said: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.phpLine: ~2231Change...$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
15 years 5 months ago #72783 by Jean-Max
Replied by Jean-Max on topic UNKNOWNARCHIVETYPE - K2 (SigPro) Image Gallery
I tried every solutions on every post regarding the UNKNOWNARCHIVETYPE issue. But I can't get it work. Is there someone who got a general workaround. Please help. Thanks in advance.

Sig Pro - 2.0.4
Joomla - 1.5.11
K2 - 2.1

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

More
15 years 5 months ago #72784 by Jean-Max
Replied by Jean-Max on topic UNKNOWNARCHIVETYPE - K2 (SigPro) Image Gallery
Same problem for me. But still no real solution anywhere!!!!!

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

More
15 years 2 months ago #72785 by Ray Cascella
Replied by Ray Cascella on topic UNKNOWNARCHIVETYPE - K2 (SigPro) Image Gallery
When I had this issue, in the Free verson of SIG, I found that the MIME type was not what I expected. The type the system actually saw was "application/zip; charset=binary", instead of the regular "application/zip", once I added it to the array on the line below, it recognized the file and uploaded the image gallery just fine =-D

found in administrator/components/com_k2/models/item.php
Approx line 393

$handle->allowed = array("application/rar", "application/x-rar-compressed", "application/arj", "application/gnutar", "application/x-bzip", "application/x-bzip2", "application/x-compressed", "application/x-gzip", "application/x-zip-compressed", "application/zip", "multipart/x-zip", "multipart/x-gzip", "application/x-unknown", "application/x-zip","application/zip; charset=binary");

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

More
15 years 1 month ago #72786 by Jamie Morrison
Replied by Jamie Morrison on topic UNKNOWNARCHIVETYPE - K2 (SigPro) Image Gallery
I've tried all the fixes listed so far, and none have worked. I still get the UNKNOWNARCHIVETYPE message when trying to upload a ZIP file. I've got Joomla 1.5.14, K2 2.2 and SIG 2.0.5. Anyone got any further ideas in getting this to work? Thanks!

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

More
15 years 1 month ago #72787 by Lefteris
Replied by Lefteris on topic UNKNOWNARCHIVETYPE - K2 (SigPro) Image Gallery
Hi. Please try to upload the zip file using a different browser and see what happens.

Jamie Morrison said:I've tried all the fixes listed so far, and none have worked. I still get the UNKNOWNARCHIVETYPE message when trying to upload a ZIP file. I've got Joomla 1.5.14, K2 2.2 and SIG 2.0.5. Anyone got any further ideas in getting this to work? Thanks!

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

More
15 years 1 month ago #72788 by jbmaury
Hello everybody,

i tried all i've seen in this discussion (and other information like the artcicle in K2JOOM site) , including paying for the Pro version of SIG.
It does not works at all.

Any has a new idea please ??

Detail actions :

- SIG Pro installed
- class.upload.php modified
- item.php modified
- google chgrome; IE & Firefox tested.

Did i miss anything ???

Plus :

I used the free Plugin and comand line {gallery},{/gallery} tio display my pictures.
Since i installed the Pro version of SIG, when i clic on the thumbnail, two popups appears (probably mootools reloaded ?)

Site :


Lefteris Kavadas said:Hi. Please try to upload the zip file using a different browser and see what happens. Jamie Morrison said:I've tried all the fixes listed so far, and none have worked. I still get the UNKNOWNARCHIVETYPE message when trying to upload a ZIP file. I've got Joomla 1.5.14, K2 2.2 and SIG 2.0.5. Anyone got any further ideas in getting this to work? Thanks!

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

More
15 years 1 month ago #72789 by Simon Wells
Replied by Simon Wells on topic UNKNOWNARCHIVETYPE - K2 (SigPro) Image Gallery
Hi Jean,

This is not an immediate answer, but if you have purchased SIG Pro, then you should get support directly from Joomlaworks for the issue.

I have been paying attention to issues regarding k2 and SIG free, hacks and Pro and some work for many with no issues, then you get a few users that have a lot of trouble.

To get a definitive resolve would be great for all.
For multiple instances of pop up, then you still have one of the plugins enables or try chaning from mootools to js type instead.

Simon



Jean-Baptiste MAURY said:Hello everybody,
i tried all i've seen in this discussion (and other information like the artcicle in K2JOOM site) , including paying for the Pro version of SIG.
It does not works at all.

Any has a new idea please ??

Detail actions :

- SIG Pro installed
- class.upload.php modified
- item.php modified
- google chgrome; IE & Firefox tested.

Did i miss anything ???

Plus :

I used the free Plugin and comand line {gallery},{/gallery} tio display my pictures.
Since i installed the Pro version of SIG, when i clic on the thumbnail, two popups appears (probably mootools reloaded ?)

Site :


Lefteris Kavadas said:Hi. Please try to upload the zip file using a different browser and see what happens. Jamie Morrison said:I've tried all the fixes listed so far, and none have worked. I still get the UNKNOWNARCHIVETYPE message when trying to upload a ZIP file. I've got Joomla 1.5.14, K2 2.2 and SIG 2.0.5. Anyone got any further ideas in getting this to work? Thanks!

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

More
15 years 1 month ago #72790 by Jamie Morrison
Replied by Jamie Morrison on topic UNKNOWNARCHIVETYPE - K2 (SigPro) Image Gallery
Thank you! That worked. So simple -- I should've thought of it.

Lefteris Kavadas said:Hi. Please try to upload the zip file using a different browser and see what happens.
Jamie Morrison said:I've tried all the fixes listed so far, and none have worked. I still get the UNKNOWNARCHIVETYPE message when trying to upload a ZIP file. I've got Joomla 1.5.14, K2 2.2 and SIG 2.0.5. Anyone got any further ideas in getting this to work? Thanks!

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

More
14 years 7 months ago #72791 by Philippe Ranc
Replied by Philippe Ranc on topic UNKNOWNARCHIVETYPE - K2 (SigPro) Image Gallery
Right. I've had the same problem. With Firefox, not working. With IE, working fine... The only first time that IE is working better than other browser...
@+

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


Powered by Kunena Forum