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.
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?
No, no problem.
Thanks for the help.
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!