Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[Solved] website not loading
Post new topic   Reply to topic View previous topic :: View next topic
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
[Solved] website not loading
PostPosted: 05/22/2007 5:13 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 1:24 AM
Location: Birmingham, UK.
greatbrE.gif
Code:
phpBB : Critical Error

Error creating new session

DEBUG MODE

SQL Error : 1114 The table 'phpbb_sessions' is full

INSERT INTO phpbb_sessions (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in, session_admin) VALUES ('d88b58b8bf3e0d33624c74e46e4e9db1', 2, 1179828524, 1179828524, 'ac9f43ee', 0, 1, 0)

Line : 189
File : sessions.php



http://www.djpassions.com what's wrong?  dontknow

was fine when i last the left the site in a good state last sunday
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: website not loading
PostPosted: 05/22/2007 5:37 AM Reply with quote
Site Admin
rb2d2
Site Admin
Posts 49593
Word Cnt. 2,756,445
BDay Apr 22
Sign Taurus
Sex Sex:Female
Joined: Sep 25, 2004
Local time: 6:24 PM
Location: Texas
texasC.gif
Chris, I don't know if this is exactly like yours but you might look at this page and see if it helps you solve your problem:


http://www.neothermic.com/kb/article42.html


sunny
Back to Top
View all pictures posted by this userView user's profile Find all posts by rb2d2 Send private message   Visit poster's website Phoogle Map
Re: [Solved] website not loading
PostPosted: 05/22/2007 6:48 AM Reply with quote
Caravan
FTM
Caravan
Posts 282
Word Cnt. 31,380
BDay Apr 14
Sign Aries
Sex Sex:Female
Joined: Nov 01, 2006
Local time: 8:24 PM
Location: Denver, PA
usaCa.gif
Ohhhh. I don't like that error. I had to deal with that one with a friends forum. It's basically telling you that your sessions table is full, or it could be that your server limits the amount of allowed sessions per hour, and your forum has gone over that amount.

rb2ds linked you to a great article about this error with some possible ways to fix it. If you go through all of the fixes, and your still getting the error, you will need to talk to your host. You might be getting too big for your server.
Back to Top
View user's profile Find all posts by FTM Send private message   Visit poster's website Yahoo Messenger
Re: website not loading
PostPosted: 05/22/2007 3:28 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 8:24 PM
Location: St Pete, FL
peace.gif
This is what I did to help you.  I emptied the Sessions table and changed the max record count to 3000 rather than the 500 record limit that you had.  Then I added the following code to your sessions.php file per the instructions that rb2d2 linked to:

OPEN
includes/sessions.php

FIND
Code:
message_die(CRITICAL_ERROR, 'Error creating new session', '', __LINE__, __FILE__, $sql);

REPLACE WITH
Code:
$error = TRUE;
if (SQL_LAYER == "mysql" || SQL_LAYER == "mysql4")
{
    $sql_error = $db->sql_error($result);
    if ($sql_error["code"] == 1114)
    {
        $result = $db->sql_query('SHOW TABLE STATUS LIKE "'.SESSIONS_TABLE.'"');
        $row = $db->sql_fetchrow($result);
        if ($row["Type"] == "HEAP" || $row["Engine"] == "MEMORY")
        {
            if ($row["Rows"] > 2500)
            {
                $delete_order = (SQL_LAYER=="mysql4") ? " ORDER BY session_time ASC" : "";
                $db->sql_query("DELETE QUICK FROM ".SESSIONS_TABLE."$delete_order LIMIT 50");
            }
            else
            {
                $db->sql_query("ALTER TABLE ".SESSIONS_TABLE." MAX_ROWS=".($row["Rows"]+50));
            }
            if ($db->sql_query($sql))
            {
                $error = FALSE;
            }
        }
    }
}
if ($error)
{
    message_die(CRITICAL_ERROR, "Error creating new session", "", __LINE__, __FILE__, $sql);
}

Hopefully if this replacement code works as advertised, you will never encounter a session error again because it will never allow the number of records to exceed the 2500 record limit, well short of the 3000 record limit in the table itself...

The reason why this happens is because the phpBB code doesn't do a very good job of cleaning out unused records from the sessions table.  Your forum is not active enough to have exceeded the limit, so the sessions table was storing a lot of garbage, which ended up causing this problem.  Hopefully it won't happen again...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] website not loading
PostPosted: 05/22/2007 7:40 PM Reply with quote
Caravan
FTM
Caravan
Posts 282
Word Cnt. 31,380
BDay Apr 14
Sign Aries
Sex Sex:Female
Joined: Nov 01, 2006
Local time: 8:24 PM
Location: Denver, PA
usaCa.gif
Do you think we all could benefit from checking and changing our max record count? Is it 500 by default for everyone?
Back to Top
View user's profile Find all posts by FTM Send private message   Visit poster's website Yahoo Messenger
Re: website not loading
PostPosted: 05/22/2007 11:38 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 8:24 PM
Location: St Pete, FL
peace.gif
It probably wouldn't hurt to make the changes even if you've never encountered this problem before.  It's probably only a matter of time before you do and when it happens, you may not remember where to find this topic and the link explaining how to correct the problem.  So it would be a bit of preventative maintanence to go ahead and do it now...

I think the default is set to 500 records when you install phpBB for the first time.  I think that's standard for everyone regardless of your host.  I changed it hear in RCF ages ago...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] website not loading
PostPosted: 05/23/2007 7:39 AM Reply with quote
Caravan
FTM
Caravan
Posts 282
Word Cnt. 31,380
BDay Apr 14
Sign Aries
Sex Sex:Female
Joined: Nov 01, 2006
Local time: 8:24 PM
Location: Denver, PA
usaCa.gif
Thanks Nightrider, I will get this taken care of on all of my forums.  banana
Back to Top
View user's profile Find all posts by FTM Send private message   Visit poster's website Yahoo Messenger
Re: website not loading
PostPosted: 05/23/2007 11:44 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 8:24 PM
Location: St Pete, FL
peace.gif
Sounds like a plan.  This little preventative maintenance may have saved you some downtime in the future, so I'm sure it is well worth it...

Applause
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] website not loading
PostPosted: 05/24/2007 6:25 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 1:24 AM
Location: Birmingham, UK.
greatbrE.gif
Cheers guys! will report back if I get the problem again although I doubt it will happen again going by what you said Nightrider  Applause

Again cheers Smile
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: website not loading
PostPosted: 05/25/2007 12:15 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 8:24 PM
Location: St Pete, FL
peace.gif
I would be surprised if you ever see that error again on that forum.  Please don't surprise me...

banana  blob8  banana  blob8  banana  blob8  banana
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours

Page 1 of 1


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.1013s (PHP: 60% - SQL: 40%) - SQL queries: 58 - GZIP disabled - Debug on