forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 upload => Topic started by: giovane234 on January 04, 2020, 11:37:00 pm

Title: Fatal Error: Allowed memory size
Post by: giovane234 on January 04, 2020, 11:37:00 pm
After upgrading coppermine to the latest version, I started to get the error "FATAL ERROR: ALLOWED MEMORY SIZE OF XXXXXXX EXHAUSTED at line 403 of file /include/imageobject_gd.class.php" when uploading photos over 4000px.

So I tried switching the resizing method to ImageMagick and everything worked perfectly. Any idea why it doesn't work with GD Version 2.x?
Title: Re: Fatal Error: Allowed memory size
Post by: phill104 on January 07, 2020, 08:06:30 pm
GD can use quite a bit of memory to manipulate images. So what is happening is the server is using more memory than your hosting allows. Depending on your hosting you may be able to increase that through the PHP.ini file or a .htaccess file. There are plenty of topics on this throughout these forums but basically it boils down to having a chat with your host to ask if and how it can be done.