Hi,

After clearing the cache I get the following error in the Drupal admin:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 5916022 bytes) in /var/www/includes/theme.inc on line 1413

I increased the php memory limit to 128M which should be more then enough according to the information I found on the internet.
I'm using the views and Drupal for Firebug module. When I disable the Drupal for Firebug module the error disappears. Since I'm using the latest version of Drupal for Firebug v1.3 and I don't find any information about memory issues when using the Drupal for Firebug module I would like to know if the error can be caused by the custom theme I'm using ?
The template page.tpl.php includes "print $closure" as required for the Drupal for Firebug module.

Comments

tryitonce’s picture

I set my Drupal installations in settings.php to 500M as a standard and this never gives me a problem.

May be this high setting has side-effects I am not aware of???
in settings.php I add - ini_set('memory_limit', '500M');
............

Livios’s picture

I increased the memory to 256M and clearing the cache doesn't generate an error anymore.

Thanks !

flyboynomad’s picture

I have recently enabled DEVEL module and firebug to do some testing on my Developement site

and since then I have been getting the same error above. However you quick fix idea worked and after disabling the firebug module I am not getting this error anymore and can easily clear cache.

But is there any fix since I might need to enable the firebug module for testing purpose.

Increasing memory is not a option right now, but I am keeping my options open.

Any advice would be great. :D

maxo

chetan-singhal’s picture

thanks

chetan

krishanchandra’s picture

Thanks, This work for me- very well.
settings.php - ini_set('memory_limit', '500M');

Christopher James Francis Rodgers’s picture

For a detailed step-by-step solution to this memory error problem
for both Drupal 6 and Drupal 7 to easily increase the memory allocation to 128M, see...
http://drupal.org/node/76156#comment-4582924

..or..

Drupal 7 memory increase to more than 128M,
that may or may not work for Drupal 6, see...
http://drupal.org/node/76156#comment-4583384


All the best; intended.
-Chris (great-grandpa.com)
___
"The number one stated objective for Drupal is improving usability." ~Dries Buytaert *

Shashwat Purav’s picture

ini_set('memory_limit', '-1'); in settings.php worked for me.

Thank You,
Shashwat Purav

Surya1988’s picture

I increased the memory limit to 256 mb and reloaded the site. The fatal error is gone!

nidhitiwari’s picture

ini_set('memory_limit', '-1'); works for me :)

Thanks a lot

Sahil Gupta’s picture

You can use a module to control this limit as well. PHP Runtime Configurator module provides many options to configure without changing your php.ini file and restart Apache.
You can configure following parameters:

- File Upload Limit
- Memory Limit
- Maximum Execution Time Limit
- Maximum Input Variable Limit

aliuyusuf001’s picture

See the steps I used 

  1. I back up my database from 
  2. I drop the database tables 
  3. I import the database tables
  4. I refresh the site again.

I hope this helps