Page 1 of 1

Error in the administration to add images

Posted: Fri Feb 06, 2009 5:18 pm
by marillion
Hello from a few days ago giving me this error on the administration when it comes to adding images

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1890 bytes) in /var/www/vhost/berriak.es/home/html/library/image/image.php on line 59

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 35 bytes) in /var/www/vhost/berriak.es/home/html/library/database/database.php on line 38


I can help?

Re: Error in the administration to add images

Posted: Fri Feb 06, 2009 6:02 pm
by bruce
It is a limitation of the GD library. You must keep your original image size below about 500kb for the opencart built in image resizing to work for you.

Re: Error in the administration to add images

Posted: Fri Feb 06, 2009 6:57 pm
by marillion
Thank You.

Re: Error in the administration to add images

Posted: Fri Feb 06, 2009 7:20 pm
by hm2k
I've actually already handled this issue better in 0.8, we do some smart memory checks to see if we have enough to process the error, if not, we get a nice little error explaining the issue.

Ultimately the solution is to increase PHP's memory if you can, or decrease the original size of the image before you upload it as bruce suggested.