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.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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