Fatal Error: Allowed memory size Fatal Error: Allowed memory size
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Fatal Error: Allowed memory size

Started by giovane234, January 04, 2020, 11:37:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

giovane234

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?

phill104

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.
It is a mistake to think you can solve any major problems just with potatoes.