Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By jaypabs on
I have tried my best to fix this error but to no luck. I have already increased the memory_limit to 128mb. I don't think this is something to do with memory in PHP.ini since it was already 128mb.
Here's some of the apache config:
ServerLimit = 256
MaxClients = 100
MaxRequestsPerChild = 50
here's the error:
[22-Mar-2011 06:01:58] PHP Fatal error: Out of memory (allocated 57409536) (tried to allocate 1347721 bytes) in /home/scode/public_html/includes/database.mysql.inc on line 310
Comments
Did you verify
Did you verify the memory allocation by looking at phpinfo()?
Yes it's already 128mb.
Yes it's already 128mb.
solution for that pb
Out of memory (allocated 57409536) == only 54.75 mb actually allocated to your php mem.
try fixing another memory limit with apache using Rlimit in .htaccess
the solution is there and worked for me an a lot of people.
http://drupal.org/node/1261162
PHP fatal error: out of memory
When setting up a Drupal7 website on my localhost, I ran into the same "memory limit" error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 46 bytes) in C:\xampp\htdocs\drupal7\includes\menu.inc on line 3613.
Reloading the web page: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 38 bytes) in C:\xampp\htdocs\drupal7\includes\database\database.inc on line 2108 ... and so on
I got this error when I enabled a couple of modules at once.
Now I can't even acces the backend of the site. When I login I only get the page untill the menu but without the theme/template lay-out
I ran my phpinfo.php file: memory limit 32MB
When I used the recommended solution, putting RlimitMem and/or RLimitMem 128000000 in the .htaccess file, the phpinfo file still gave the same figure: 32MB. [I did check the .htaccess to be an actual .htaccess file and not something like .htaccess.txt]
Can any one help?
I don't want to set up a site, and having it crash then to start all over again.
It is not so much the content, because for now there is not much, but getting modules working and figuring out what modules to use.
Here's the handbook page on
Here's the handbook page on what you need to try. 32MB is way too low for almost any Drupal 7 site.
http://drupal.org/node/207036
Anthony Pero
Project Lead
Virtuosic Media
http://www.virtuosic.me/
PHP fatal error: out of memory
After all this hussle and doings, I switched my computer off and went for a ride on my bike.
On my return I had to turn my computer on again.
It turned out that the php-memory value of 128MB I added to the php.ini file had taken hold.
My crashed site worked again. And I remembered reading another post that recommended resetting the xampp server. I thought I tried that earlier, apparantly not (good).
I checked my "crash"-site for the memory-error by enabling a couple of modules. No errors!