coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: theflinger on August 01, 2004, 07:08:50 PM

Title: another solution for Fatal error: Allowed memory size of x bytes exhausted
Post by: theflinger on August 01, 2004, 07:08:50 PM
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
Title: Re: another solution for Fatal error: Allowed memory size of x bytes exhausted
Post by: Tarique Sani on August 02, 2004, 05:09:52 AM
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. :)