Fatal error: Allowed memory size

skubisnack624 - July 17, 2008 - 19:40

I have gotten a memory error that could be solved (from what I've read) by increasing the memory_limit value in phpMyAdmin. However, I'm on shared hosting and cannot get even a temporary increase in order to figure things out. I am completely locked out of my site, so I am unable to change anything through Drupal. Is there anything I can do to regain access to my site? I'd really hate it if I had to start over from scratch.

Here's some info:
Drupal 5.7
32MB memory_limit

This happened after adding about 5 nodes and creating a view. Here is the error that I get on every page:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1578662 bytes) in /home/mysite/public_html/includes/bootstrap.inc on line 634

Warning: Table 'watchdog' was not locked with LOCK TABLES query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (1, 'php', 'Table 'sessions' was not locked with LOCK TABLES\nquery: SELECT sid FROM sessions WHERE sid = '47489db0852e09c7198b1abfb1cc2985' in /home/mysite/public_html/includes/database.mysql.inc on line 172.', 2, '', 'http://www.mrtrophyawards.com/', '', '70.148.196.78', 1216322491) in /home/mysite/public_html/includes/database.mysql.inc on line 172

Warning: Table 'watchdog' was not locked with LOCK TABLES query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (1, 'php', 'Table 'sessions' was not locked with LOCK TABLES\nquery: INSERT INTO sessions (sid, uid, cache, hostname, session, timestamp) VALUES ('47489db0852e09c7198b1abfb1cc2985', 1, 0, '70.148.196.78', 'FCKeditor|a:2:{s:13:\\"UserFilesPath\\";s:0:\\"\\";s:21:\\"UserFilesAbsolutePath\\";s:0:\\"\\";}imagefield|a:0:{}form|a:3:{s:32:\\"decb7570865eae370fab8ab3df92242a\\";a:2:{s:9:\\"timestamp\\";i:1216310141;s:4:\\"args\\";a:1:{i:0;s:14:\\"system_modules\\";}}s:32:\\"ef972c5671eed41e453c4fd448a3095d\\&qu in /home/mysite/public_html/includes/database.mysql.inc on line 172

Please let me know if I need to provide any more info. Thanks for your help.

Greg

I would recommend finding a

jadowd - July 17, 2008 - 20:12

I would recommend finding a new isp. if all they are going to give you is 32 megs of ram for your php... they are probably pretty bad to begin with... you get what you pay for.

Have you tried overriding

Magnity - July 17, 2008 - 21:22

Have you tried overriding the memory limit with a php.ini file? Sometimes you can even if your host says you can't...

Magnity

http://webdesign.magnity.co.uk
Drupal 5 themes | Drupal 6 themes

I don't know all that much

skubisnack624 - July 18, 2008 - 14:31

I don't know all that much about php. I found suggestions for bumping up memory in php.ini files, but I don't have one currently. Can I just name a file php.ini and put in a string about memory_limit, or do I need more in the file?

Thanks for your help!

You have a php.ini file...

jadowd - July 18, 2008 - 14:36

You have a php.ini file... you just don't know where it is. your php.ini file is going to likely be in your /etc directory if you are using a *nix server. look for a php5 directory there... if not, let me know and I might offer other suggestions where to find it.

Yeah...not in there. I

skubisnack624 - July 18, 2008 - 14:49

Yeah...not in there. I can't find any directory named php5.

Here's some more information about my host:

Shared (Obviously)
ANS/Midphase
I do not have root access

Thanks

ahh... you will have to ask

jadowd - July 18, 2008 - 19:00

ahh... you will have to ask the server admin to raise the php memory limit for you. If you go to this...

http://your.site.here/admin/logs/status/php

You can see where your php.ini file lives... Just look for the data in the "Configuration File (php.ini) Path" row of the top table.

I hope that helps.

Cheers,

 
 

Drupal is a registered trademark of Dries Buytaert.