Drupal 5 Allowed Memory Size Exhausted

Giarc86

Expert Member
Joined
May 28, 2008
Messages
1,243
Reaction score
4
Hi all,

There is a site my company owns that was done in Drupal 5 but no one here exactly manages it. Content gets uploaded by free lancers elsewhere.

The other day the site suddenly stopped working and gave this error message:

Code:
Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 605 bytes) in /usr/www/users/couryr/includes/database.mysql.inc on line 188

The people who work on it don't know what they did and don't know how to correct it.

So I Googled and it quite simply states that the memory limit for PHP is not enough.

So I checked in Hetzner and the highest limit is 64MB.

Can a limit be set higher elsewhere? I tried putting a php.ini file into the root but that didn't work.

I am guessing if Hetzner says 64MB that is the most one can use?

How can I get the site to use less memory?


Thanks for any advice.
 
From http://drupal.org/node/76156 you can try set it in one of the following places:

memory_limit = 96M to your server's main php.ini file (recommended, if you have access)
memory_limit = 96M to a php.ini file in the Drupal root
ini_set('memory_limit', '96M'); in your sites/default/settings.php file
php_value memory_limit 96M in your .htaccess file in the Drupal root


If you want to find exactly which module is causing the problem you can go through them and disable them one by one until the problem goes away, the most likely culprit is some image manipulation module. Also try getting rid of any modules that aren't actually being used.
 
Top
Sign up to the MyBroadband newsletter
X