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]   Go Down

Author Topic: [Solved]: Photo Shop PlugIn - download of shopping is corrupted  (Read 6815 times)

0 Members and 1 Guest are viewing this topic.

videocp

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
    • Video Creations and Productions Free Gallery

I had problems with the shopping cart downloaded zip file, says it is corrupted. I am running cpg 1.4.18, Photo Shop v1.3.6. I have removed and reinstalled Photo Shop twice (got it from stramm's site). I can download My Favorites as a zip file but can not download the photo shop cart zip file. Any suggestions as to the next steps I should take to resolve this? At this point all other functions of Photo Shop work except for when there are no orders and you go to the my order link you get this

Warning: Division by zero in c:\websites\videocp64\videocp.org\coppermine\plugins\photo_shop\photo_shop_myorders.php on line 76

Warning: Division by zero in c:\websites\videocp64\videocp.org\coppermine\plugins\photo_shop\photo_shop_myorders.php on line 77


So, I need help with, order downloaded zip file is corrupt and the above errors when the order list is empty.

Thanks in advance for you valued feedback.
« Last Edit: May 12, 2008, 05:59:32 pm by Stramm »
Logged

videocp

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
    • Video Creations and Productions Free Gallery
Re: Photo Shop PlugIn - download of shopping cart is corrupted
« Reply #1 on: May 08, 2008, 10:41:02 pm »

So, I compared the cpg zipdownload.php file with the photo shop photo_shop_zip.php file and noticed their similarity and that the last three lines were different.

Photo_shop_zip.php was missing the ob_end_clean(); statement was I added it and the download works.

$zip->create_archive();
ob_end_clean();
$zip->download_file();

Does anyone see a problem with this addition to the phot shop code?
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Photo Shop PlugIn - download of shopping is corrupted
« Reply #2 on: May 09, 2008, 08:09:36 am »

No, no problem.

videocp

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
    • Video Creations and Productions Free Gallery
Re: Photo Shop PlugIn - download of shopping is corrupted
« Reply #3 on: May 12, 2008, 03:37:19 pm »

Thanks for the help.
Logged

tgontz

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Re: [Solved]: Photo Shop PlugIn - download of shopping is corrupted
« Reply #4 on: September 02, 2008, 09:38:10 pm »

Thanks videocp & stramm. I had the same problem with downloading zip files from the Photo Shop plugin and adding ob_end_clean(); near the end of the file solved my problem!
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.