Keyword

Simple Image Gallery

  • Andrew Neighbour
  • Andrew Neighbour's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 11 months ago #89307 by Andrew Neighbour
Simple Image Gallery was created by Andrew Neighbour
I am learning my way through K2 and loving it.  However, I have a problem that many have reported, and yet despite several hours searching the forums, I have not found a straightforward solution.I'm using Joomla 1.5.20; K2 2.4.1; SIG Pro 2.0.5I am developing a product catalog and for each item, I want an image gallery of different views.Everytime I try to upload a zipfile under item>image Gallery, I get the standard error message:

UNKNOWNARCHIVETYPE
Gallery upload error: Cannot extract archive!



I am using WinZip to create the zip file; I have created a folder media/k2/galleries and set that as the default in SIG; permissions are 775.  I have uninstalled and reinstalled SIGPro.What more should I be doing to get this to work?Any help would be much appreciated - maybe a tutorial or documentation article would be appropriate as everyone (it seems) appears to run into some kind of image gallery problem.Many thanks,Andrew

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

More
13 years 11 months ago #89308 by william white
Replied by william white on topic Simple Image Gallery
First, be sure about the way your zipping up the jpg's
do not put them into a directory within the zip file

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

  • Andrew Neighbour
  • Andrew Neighbour's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 11 months ago #89309 by Andrew Neighbour
Replied by Andrew Neighbour on topic Simple Image Gallery
William White said:First, be sure about the way your zipping up the jpg's do not put them into a directory within the zip file

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

  • Andrew Neighbour
  • Andrew Neighbour's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 11 months ago #89310 by Andrew Neighbour
Replied by Andrew Neighbour on topic Simple Image Gallery
As far as I know I am not. I have five jpgs per product. I highlight them and create a zipfile in the same directory as these images that contains the compressed files. I then try to upload the zipfile and it fails.

What else might I be doing wrong?
Thanks,
A

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

More
13 years 11 months ago #89311 by william white
Replied by william white on topic Simple Image Gallery
What browzer are you using, i see in some of the posts here searching for Unknown.....
that switching browzers sometimes works

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

  • Andrew Neighbour
  • Andrew Neighbour's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 11 months ago #89312 by Andrew Neighbour
Replied by Andrew Neighbour on topic Simple Image Gallery
firefox for setting up the site

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

  • Andrew Neighbour
  • Andrew Neighbour's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 11 months ago #89313 by Andrew Neighbour
Replied by Andrew Neighbour on topic Simple Image Gallery
Tried it in safari and IE8 - didn't help
A

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

  • Andrew Neighbour
  • Andrew Neighbour's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 11 months ago #89314 by Andrew Neighbour
Replied by Andrew Neighbour on topic Simple Image Gallery
I've also tried various different configs for WinZip 12 and 14.5 to create zip and zipx files with and without compression - these also all provide the same error message.

Thanks...getting desperate!
Andrew

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

  • Andrew Neighbour
  • Andrew Neighbour's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 11 months ago #89315 by Andrew Neighbour
Replied by Andrew Neighbour on topic Simple Image Gallery
Please if there is anyone with any suggestions as to how to fix this, I would greatly appreciate it. The site is now "live" at batrboots.com - although still in a very rudimentary state. If I cant fix the problem, I will have to give up K2 as my client is chomping at the bit.

I have tried an install on another site hosted by the same ISP and it didn't work...I tried it on a different ISP and it worked fine...what are the potential differences I should examine between ISP's. Both are running php 5....

I'm desperate....

Thanks,
Andrew

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

  • Andrew Neighbour
  • Andrew Neighbour's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 11 months ago #89316 by Andrew Neighbour
Replied by Andrew Neighbour on topic Simple Image Gallery
This solution worked - for some reason the servers at this hosting company trip over this statement, those at another, where I have other sites hosted, had no problem with it!

Working with the tech support guys and referencing this getK2 Forum post, we were able to fix it!

From the earlier post (12 months ago!)

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