forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 plugins => Topic started by: videocp on May 08, 2008, 02:40:29 pm

Title: [Solved]: Photo Shop PlugIn - download of shopping is corrupted
Post by: videocp on May 08, 2008, 02:40:29 pm
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.
Title: Re: Photo Shop PlugIn - download of shopping cart is corrupted
Post by: videocp 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?
Title: Re: Photo Shop PlugIn - download of shopping is corrupted
Post by: Stramm on May 09, 2008, 08:09:36 am
No, no problem.
Title: Re: Photo Shop PlugIn - download of shopping is corrupted
Post by: videocp on May 12, 2008, 03:37:19 pm
Thanks for the help.
Title: Re: [Solved]: Photo Shop PlugIn - download of shopping is corrupted
Post by: tgontz 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!