learning to be human, since 1984
Drupal Fatal error: Allowed memory size of 33554432 bytes exhausted
While installing the Calendar module for a Drupal site, I ran into the following error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /home/milwaul0/public_html/drupal/includes/theme.inc on line 729
Confounded, I searched the internet and found this:
http://drupal.org/node/283579
The first option (making a php.ini file in the root) appears to need a restart of the webserver, so I tried the second option, allocating more memory to php via drupal using:
ini_set(‘memory_limit’, ’64M’); in the sites/default/settings.php file
But before that, I had to change the permissions of the file, which had been set to 555 (default, by the site admin I assume).
I initially set the memory to 64M to make sure it would work, since 33554432 bytes is 32MB. After it worked, I noticed that the permissions for the file had been reset to 555, so I changed that again and allocated 32MB for php. It worked. If ever any problems arise, I’ll know what to do.
What’s weird is that this error was triggered while allocating 71 bytes. I don’t know why there was even an issue… anyone?
| Print article | This entry was posted by sarandi on Saturday 17 January 2009 at 22:11, and is filed under code, web. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 1 year ago
That totally bytes.