[Solved]: Photo Shop PlugIn - download of shopping is corrupted [Solved]: Photo Shop PlugIn - download of shopping is corrupted
 

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]

Main Menu

[Solved]: Photo Shop PlugIn - download of shopping is corrupted

Started by videocp, May 08, 2008, 02:40:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

videocp

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.

videocp

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?

Stramm


videocp


tgontz

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!