Hello,
I recently took over the maintenance of a ZenCart 1.3.8 site (PHP Version 5.2.6, MySQL 5.0.75), and in a customized add-on module, after selecting "Proceed to Checkout", I am getting the following error messages before the PayPal checkout page comes up:
Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib failed to initialize compressor -- stream error in .../htdocs/<module name>/pe_functions.php on line 34
Warning: imagepng() [function.imagepng]: gd-png error: setjmp returns error condition in .../htdocs/<module name>/pe_functions.php on line 34
Processing please wait..........
Here is the referenced line 34 in the pe_functions.php file:
imagepng($im,"$filename",80);
... with this comment above it: //imagetruecolortopalette($im, true, 256); // set palette
I am completely stumped on how to troubleshoot this; I tried searching in the Developer's Toolkit for the various tags in the code but didn't find anything. I also found this posting in the forum: http://www.zen-cart.com/forum/showth...light=imagepng --- but nothing has been moved in this module, and it doesn't appear as though any files are missing.
Does anyone have a suggestion on how to fix this, or could someone please tell me how to troubleshoot this?
Thank you.



