another solution for Fatal error: Allowed memory size of x bytes exhausted another solution for Fatal error: Allowed memory size of x bytes exhausted
 

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

another solution for Fatal error: Allowed memory size of x bytes exhausted

Started by theflinger, August 01, 2004, 07:08:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

theflinger

My host (Intimidated from sharelive.com) gave me this solution:

find the file in question (which was gallery/include/picmgmt.inc.php)

Add these lines to the top of the file
  set_time_limit(6000);
       ini_set('memory_limit', "640M");

As long as your host doesn't restrict memory limits (he says that a lot don't, but the values are defaulted low), this will make it work.

Worked for me beautifully.



Sorry if this is in the wrong section

Tarique Sani

This will work if you can run ini_set BUT on the other hand if a shared server is allowing ini_set I would say the server is very poorly configured. :)
SANIsoft PHP applications for E Biz