Question : I'm getting fatal error when updating an image
From : Jashen
Hi need to tell you that your php plaincart work is very nice.
Actually i am getting trouble when updating an image in the "category" or "product" section.

I am getting the following error:
Fatal error: Call to undefined function imagecreatetruecolor() in C:\Program Files\Apache Group\Apache2\htdocs\plaincart\admin\library\functions.php on line 200

The imagecreatetruecolor() function is missing, can you please forward me a copy of that function please. Thanx

Rgds, Jashen


Answer
imagecreatetruecolor() function is defined in the graphics library ( GD ). If you see this error that means you haven't enabled GD library yet. Try editing your php.ini file and remove the semicolon right in front of this line of code:

extension=php_gd2.dll

then restart apache so the new configuratin is reloaded.
«« Add products to first level category Q & A List Help with editing and viewing include files »»

 

 

 

Q & A PHP MySQL Shopping Cart Tutorial : Q & A - Detail  
Google
 
Web www.phpwebcommerce.com
 

At long last i'm finally able to update this site. Now the shopping cart can handle payment through paypal. As always you have any critiques, questions, comments or problems about this tutorial please tell me. Click here to send your feedback. And if you like this tutorial please link to this site. It will really help a lot :-)

 


Copyright © 2005 - 2008 www.phpwebcommerce.com