Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1] 2   Go Down

Author Topic: Downloading a Zip : file is corrupted  (Read 13047 times)

0 Members and 2 Guests are viewing this topic.

nerovik

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 43
Downloading a Zip : file is corrupted
« 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.


« Last Edit: January 04, 2008, 12:06:24 am by Nibbler »
Logged

Nibbler

  • Guest
Re: Downloading a Zip : file is corrupted
« Reply #1 on: January 03, 2008, 09:24:04 pm »

Post an example of the corrupted zip file.
Logged

nerovik

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 43
Re: Downloading a Zip : file is corrupted
« Reply #2 on: January 03, 2008, 10:27:06 pm »

Please find enclosed pictures.zip.
Thanks for your prompt reply.
Logged

Nibbler

  • Guest
Re: Downloading a Zip : file is corrupted
« Reply #3 on: January 03, 2008, 10:39:29 pm »

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?
Logged

nerovik

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 43
Re: Downloading a Zip : file is corrupted
« Reply #4 on: January 03, 2008, 10:54:31 pm »

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).
Logged

Nibbler

  • Guest
Re: Downloading a Zip : file is corrupted
« Reply #5 on: January 03, 2008, 11:28:40 pm »

Try changing

Code: [Select]
$zip->download_file();

to

Code: [Select]
ob_end_clean();
$zip->download_file();

in include/archive.php
Logged

nerovik

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 43
Re: Downloading a Zip : file is corrupted
« Reply #6 on: January 03, 2008, 11:47:14 pm »

$zip->download_file(); does not exist (?)
Logged

Nibbler

  • Guest
Re: Downloading a Zip : file is corrupted
« Reply #7 on: January 03, 2008, 11:48:15 pm »

Sorry, I meant zipdownload.php
Logged

nerovik

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 43
Re: Downloading a Zip : file is corrupted
« Reply #8 on: January 03, 2008, 11:55:11 pm »

You are fantastic! Thank you so much. Can you explain to me quickly ?
Logged

Nibbler

  • Guest
Re: Downloading a Zip : file is corrupted
« Reply #9 on: January 04, 2008, 12:06:05 am »

It makes sure nothing is sent to the browser before the zip file begins.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Downloading a Zip : file is corrupted
« Reply #10 on: January 04, 2008, 07:52:41 am »

@Nibbler: should this go into the core as a precaution for others with similar issues?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Downloading a Zip : file is corrupted
« Reply #11 on: January 04, 2008, 09:05:07 am »

@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.
Logged

nerovik

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 43
Downloading a Zip : file is corrupted - Bad News
« Reply #12 on: January 04, 2008, 01:48:21 pm »


Problem reopened:
It works on Windows Vista (IE7/Firefox) but it still does not work on Windows XP (IE6).
Thanks for your help!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Downloading a Zip : file is corrupted
« Reply #13 on: January 04, 2008, 02:59:36 pm »

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.
Logged

nerovik

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 43
Re: Downloading a Zip : file is corrupted
« Reply #14 on: January 04, 2008, 06:07:40 pm »

I confirm  : Internet Explorer 6 seems to be my source of annoyance!
Logged

aldog

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: Downloading a Zip : file is corrupted
« Reply #15 on: March 07, 2008, 07:41:46 pm »

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?
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Downloading a Zip : file is corrupted
« Reply #16 on: March 07, 2008, 11:04:01 pm »

- Attach that file to this thread
- Post a link to your gallery
Logged
‍I don't answer to PM with support question
Please post your issue to related board

aldog

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: Downloading a Zip : file is corrupted
« Reply #17 on: March 08, 2008, 01:08:49 am »

Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Downloading a Zip : file is corrupted
« Reply #18 on: March 08, 2008, 06:03:42 am »

Zip File is fine !!!
Also I downloaded same file my self and it's fine too!
Logged
‍I don't answer to PM with support question
Please post your issue to related board

aldog

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: Downloading a Zip : file is corrupted
« Reply #19 on: March 08, 2008, 06:21:24 am »

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.
Logged
Pages: [1] 2   Go Up
 

Page created in 0.022 seconds with 20 queries.