GlowHost Web Hosting Forums  

Go Back   GlowHost Web Hosting Forums > Web Hosting Technical Support > General Support
Register Forum FAQ Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-22-2007
That's right people. I am a certified Glow Sage.
 
Join Date: Oct 2007
Posts: 30
Rep Power: 0
JohnMorris is on a distinguished road
Default Drupal Crash . . .

Hi,

I have been successfully using Drupal for a few weeks with a small number of users. Only glitch is there isn't enough memory to run the colour changer dialogue for one of the default themes. Also successfully added the FCK editor module.

However, today I added the Panels and Views modules. Then logged in as admin and enabled them in the modules control panel. I then got the following, which I don't know how to clear or fix. Any ideas??? Thanks!

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 142384 bytes) in /home/personal/public_html/standupsales.com/drupal/includes/database.inc on line 199

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', '<em>Table &amp;#039;sessions&amp;#039; was not locked with LOCK TABLES\nquery: SELECT sid FROM sessions WHERE sid = &amp;#039;19cecee7b7b8f30c8da0487dd6628b96&amp;#03 9;</em> in <em>/home/personal/public_html/standupsales.com/drupal/includes/database.mysql.inc</em> on line <em>172</em>.', 2, '', 'http://standupsales.com/drupal/', 'http://www.standupsales.com/', '64.231.255.26', 1195787482) in /home/personal/public_html/standupsales.com/drupal/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', '<em>Table &amp;#039;sessions&amp;#039; was not locked with LOCK TABLES\nquery: INSERT INTO sessions (sid, uid, cache, hostname, session, timestamp) VALUES (&amp;#039;19cecee7b7b8f30c8da0487dd6628b96&amp;#0 39;, 1, 0, &amp;#039;64.231.255.26&amp;#039;, &amp;#039;form|a:1:{s:32:\\&amp;quot;10a52846e870d ff6c442826552314677\\&amp;quot;;a:2:{s:9:\\&amp;qu ot;timestamp\\&amp;quot;;i:1195787359;s:4:\\&amp;q uot;args\\&amp;quot;;a:1:{i:0;s:14:\\&amp;quot;sys tem_modules\\&amp;quot;;}}}messages|a:1:{s:6:\\&am p;quot;status\\&amp;quot;;a:2:{i:0;s:16:\\&amp;quo t;Installing views\\&amp;quot;;i:1;s:43:\\&amp;quot;Views module installed tables successfully.\\&amp;quot;;}}&amp;#039;, 1195787482)</em> in <em>/home/personal/public_h in /home/personal/public_html/standupsales.com/drupal/includes/database.mysql.inc on line 172
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-22-2007
sergey's Avatar
Newbie
 
Join Date: Aug 2005
Posts: 204
Rep Power: 58
sergey is on a distinguished road
Default

This should be corrected and this error shouldn't be shown again. If this issue still persist, please submit a trouble ticket and we will check it from our end.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-23-2007
That's right people. I am a certified Glow Sage.
 
Join Date: Oct 2007
Posts: 30
Rep Power: 0
JohnMorris is on a distinguished road
Default It works . . .

Thanks ... I'm just curious ... is it something I need to do in cPanel?

John
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-23-2007
Alexander's Avatar
Moderator
 
Join Date: Jul 2007
Posts: 169
Rep Power: 33
Alexander is on a distinguished road
Default

This is PHP configuration issue, not Cpanel.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-23-2007
That's right people. I am a certified Glow Sage.
 
Join Date: Oct 2007
Posts: 30
Rep Power: 0
JohnMorris is on a distinguished road
Default

What please was the PHP configuration issue? Does your fix apply to my other domains under the same account? I'd just like to know what to ask for in the future...thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-24-2007
andychev's Avatar
Master Glow Jedi
 
Join Date: Apr 2005
Location: Chester, UK
Posts: 150
Rep Power: 59
andychev is on a distinguished road
Default

I belive the setting in question is the memory limit (set in php.ini) as default this is set to 8mb.

I had a similar problem with a script and had to increase the memory allocation.

you can use ini_set so:

string ini_set ( string $varname, string $newvalue )

so in the file that is causing problems you would add:

ini_set("memory_limit","64M"); or whatever memory limit gets it working.

at the top.

**HOWEVER** check with glowhost first before you do this i dont know whether this will cause problems in a shared hosting environment.

Im guessing glowhost will have altered a the php.ini and increased the memory limit so you shouldnt have to use the above. THe change will be server wide.

Last edited by andychev; 11-24-2007 at 10:40 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 11-24-2007
jmarcv's Avatar
immoderate moderator
 
Join Date: Jan 2005
Posts: 336
Rep Power: 75
jmarcv is just really nicejmarcv is just really nicejmarcv is just really nicejmarcv is just really nicejmarcv is just really nice
Default

Andychev! 64MB? If a program needs that much RAM, it belongs on a windows server, not linux! LOL!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 11-24-2007
andychev's Avatar
Master Glow Jedi
 
Join Date: Apr 2005
Location: Chester, UK
Posts: 150
Rep Power: 59
andychev is on a distinguished road
Default

Quote:
Originally Posted by jmarcv View Post
Andychev! 64MB? If a program needs that much RAM, it belongs on a windows server, not linux! LOL!
Hmm, I did just kinda pluck that number out of the air when i added it to ensure the program ran reliably. Just tried reducing it and anything under 18mb causes issues.

It is quite a big program, well sort of! It is a small script to backup and e-mail a complete database backup every few hours via a cron. The database can be anything upto 10mb hence im guessing the size of the database is what is actually causing the issues!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 11-24-2007
jmarcv's Avatar
immoderate moderator
 
Join Date: Jan 2005
Posts: 336
Rep Power: 75
jmarcv is just really nicejmarcv is just really nicejmarcv is just really nicejmarcv is just really nicejmarcv is just really nice
Default

That makes sense then. A 10MB DB file will expand a bit when it is turned intro text and then 'mimed' by mail I suppose.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:36 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO
Copyright 2000-2007 GlowHost.com