Community Forums

Error in the administration to add images

General support for technical problems with OpenCart v0.x

Error in the administration to add images

Postby marillion » Fri Feb 06, 2009 9:18 am

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?
marillion
 
Posts: 9
Joined: Tue Jan 27, 2009 11:48 am

Re: Error in the administration to add images

Postby bruce » Fri Feb 06, 2009 10:02 am

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.
bruce
 
Posts: 1094
Joined: Wed Dec 12, 2007 6:26 am

Re: Error in the administration to add images

Postby marillion » Fri Feb 06, 2009 10:57 am

Thank You.
marillion
 
Posts: 9
Joined: Tue Jan 27, 2009 11:48 am

Re: Error in the administration to add images

Postby hm2k » Fri Feb 06, 2009 11:20 am

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.
UK Web Hosting
And Gadgets - LIVE and OpenCart powered!

Have we helped you? please donate
User avatar
hm2k
Global Moderator
 
Posts: 583
Joined: Tue Mar 11, 2008 1:06 am
Location: UK


Return to General Support

Who is online

Users browsing this forum: No registered users and 2 guests

Hosted by Arvixe Web Hosting