Advanced search  

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]

Pages: [1]   Go Down

Author Topic: another solution for Fatal error: Allowed memory size of x bytes exhausted  (Read 2921 times)

0 Members and 1 Guest are viewing this topic.

theflinger

  • Coppermine newbie
  • Offline Offline
  • Posts: 4

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
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net

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. :)
Logged
SANIsoft PHP applications for E Biz
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 15 queries.