forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: nerovik on January 03, 2008, 08:57:16 pm
-
Good evening,
I have spent a lot of time with Frantz (french forum) to find out a solution. I have also looked through the entire forum for a solution. I feel desperate.
My problem is the following : I select one picture and click Add to Favorites. Then I click on My favorites and click dowload as Zip file. The pictures.zip cannot be uncompressed. 7-zip (or whatever) says that the header file is corrupted.
It works perfectly on a public website (http://liminaires.free.fr) but it does not work at home nor at my office.
My local Web server is Wamp 2.0 - PHP Version 5.2.5
Windows Vista
IE7 or Firefox (latest versions)
Php-zip.dll is activated.
Phpinfo is attached
We have already compared our configurations with Frantz (French forum). I can reproduce this problem on several different PCs (windows XP) at my office.
I cannot find out how I can solve this problem and it is very (very) urgent for me to solve it. The aim is to present a photo gallery at my office (Xampp server - virtual machine).
I can only give access to my PC at home. Let me know if you can help me. Thanks in advance.
-
Post an example of the corrupted zip file.
-
Please find enclosed pictures.zip.
Thanks for your prompt reply.
-
There's some strange characters at the start of the file. It's not whitespace. Perhaps a BOM or something. Does it work if you switch to english or change theme?
-
That's right, the header of the zip file is corrupted.
It does not work either in english.
Just let you know that I have reinstalled (fresh install) coppermine => same problem
I have modified chaoticsoul template but same problem occur with classic theme.
PYAP (from the french forum) told me that it should come from my server (Wamp). But I also tried with Xampp (another server).
-
Try changing
$zip->download_file();
to
ob_end_clean();
$zip->download_file();
in include/archive.php
-
$zip->download_file(); does not exist (?)
-
Sorry, I meant zipdownload.php
-
You are fantastic! Thank you so much. Can you explain to me quickly ?
-
It makes sure nothing is sent to the browser before the zip file begins.
-
@Nibbler: should this go into the core as a precaution for others with similar issues?
-
@Nibbler: ignore the above question - I just performed a checkout and noticed that you already added your code to the core both of cpg1.4.x as well as cpg1.5.x. Should have done this before posting my silly question, sorry.
-
Problem reopened:
It works on Windows Vista (IE7/Firefox) but it still does not work on Windows XP (IE6).
Thanks for your help!
-
Merged you new thread with the existing one. Don't double post; there is a reason why solved threads don't get locked immediately: you can still reply to them if it seems like a solved issue needs to be looked into further.
I find it hard to believe though that this should be related to the client OS: after all, the zip file creation happens on the server, not on the client: how could a client OS possibly interfere then? Anyway, tested this on Windows XP Professional German SP2 with Firefox 2.0.0.11 and IE7.0.5730.11 on your site - both work as expected, the zip files are perfectly OK.
-
I confirm : Internet Explorer 6 seems to be my source of annoyance!
-
I was having this same problem and I did what nibbler suggested. and now I get this problem
! C:\Documents and Settings\alans\Desktop\pictures.zip: The archive is either in unknown format or damaged
any suggestions?
-
- Attach that file to this thread
- Post a link to your gallery
-
my gallery - http://ad6storieshigh.com/gallery/
thanks
-
Zip File is fine !!!
Also I downloaded same file my self and it's fine too!
-
Ya I guess you're right, that one does work. I just downloaded another one with 6 files and got a corrupted error again.
here it is http://www.ad6storieshigh.com/uberdownloads/personal/pictures(3).zip
500kb limit on the attachments. hope that helps.
-
Ok it complain about end of file !
try to re-download the file.
-
well...weird, it works. thanks, hmmmmm interesting.
-
Works as expected for me: i added 6 random pics to my favorites and was able to download them just fine. The archive is intact.
You might be running into limitations on your client.
-
Yup I guess that's what was happening. Thanks for helping me I'm glad it's all working.
-
I too have the same problem. The Zip file is corrupted and I can even tell you why. The zip file starts with some kind of crazy <iframe> instead of having a PK in the first line. The bottom of the zip is also looking strange. I already had ob_end_clean(); before the $zip command, so this solution is not working for me.
The only two files that contain this <iframe> are the Fullsize Access plugin, which I already deleted because it didn't work on Microsoft server and the Lightbox plugin, which I cannot delete because I need it.
Could you kindly look into the attachment!
Thanks
-
For me the only plugins I have installed are jupload. so maybe there's another file that contains that. I'm not sure really, you sound better qualified to deduce what that means
-
aldog, upgrade asap.
<!--Coppermine Photo Gallery 1.4.13 modpack v2 (stable)--> is not safe anymore. Version 1.4.18 is the latest stable.
Hein
-
whaoo. thanks for the heads up, I haven't been paying attention at all.