Error message

Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /home1/tylerfra/public_html/includes/common.inc).

Drupal - Fatal error: Allowed memory size exhausted

Category: 

Drupal can be a memory hog, it's very hungry. Occassionally you may run out of memory when trying to enable a module or some other feature. If this happens, you'll probably see a message similar to the following

Fatal error: Allowed memory size of # bytes exhausted (tried to allocate # bytes) in includes/database.mysqli.inc

To fix this problem, I opened my sites/default/settings.php and added the following php ini setting:

ini_set('memory_limit', '128M');

It's a good idea to add this setting next to other similar ini_set() calls in settings.php, keeps things organized.

I have heard of possible alternate solutions:

Open your php.ini file, go to the 'resource limits' section, and add this line: memory_limit = 128M;

Open your .htaccess file, go to the <IfModule sapi_apache2.c>...</IfModule> and the <IfModule mod_php5.c>...</IfModule> sections and add this line inside each section:

php_value memory_limit 128M

Check out this page for additional info: http://drupal.org/node/76156

Comments

you install wamp in your local, if so, you can find php.ini in wamp/php fodelr. For .htaccess, there is no max_execution_time line in default, but you can add it by yourself , find line# PHP 5, Apache 1 and 2.<IfModule mod_php5.c> php_value magic_quotes_gpc 0 php_value register_globals 0 php_value session.auto_start 0 php_value mbstring.http_input pass php_value mbstring.http_output pass php_value mbstring.encoding_translation 0</IfModule>and add line afer it like this# PHP 5, Apache 1 and 2.<IfModule mod_php5.c> php_value magic_quotes_gpc 0 php_value register_globals 0 php_value session.auto_start 0 php_value mbstring.http_input pass php_value mbstring.http_output pass php_value mbstring.encoding_translation 0 php_value max_execution_time 120</IfModule>