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:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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