Author |
Message |
Acaria Board Member
Joined: 20 Feb 2009
Posts: 238
|
Posted: Sat Apr 25, 2009 9:34 pm Post subject: message_die() was called multiple times? |
|
|
Alright, so a board I work for has recently had a major problem. When you go to the site, all you get is this message:
message_die() was called multiple times. This isn't supposed to happen. Was message_die() used in page_tail.php?
Here's the link to the site.
I've been working on this for about 5 hours now with no luck. Can you help me?
|
|
Back to top |
|
|
Ptirhiik Board Member
Joined: 19 Nov 2008
Posts: 114
|
Posted: Sun Apr 26, 2009 12:01 pm Post subject: Re: message_die() was called multiple times? |
|
|
This little one will help you to understand better what is happening, delivering a more explicit message.
|
|
Back to top |
|
|
Acaria Board Member
Joined: 20 Feb 2009
Posts: 238
|
Posted: Sun Apr 26, 2009 1:53 pm Post subject: Re: message_die() was called multiple times? |
|
|
I added the Mod and it appears to be a problem with updating the session ids?
I'm not sure what to do, though.
|
|
Back to top |
|
|
Ram Board Member
Joined: 23 Dec 2008
Posts: 100 Location: Somewhere over the rainbow
|
Posted: Sun Apr 26, 2009 2:29 pm Post subject: Re: message_die() was called multiple times? |
|
|
Did you try to udapte to .0.24?
|
|
Back to top |
|
|
Acaria Board Member
Joined: 20 Feb 2009
Posts: 238
|
Posted: Sun Apr 26, 2009 3:20 pm Post subject: Re: message_die() was called multiple times? |
|
|
I'm on the latest version, I'm certain.
|
|
Back to top |
|
|
Jim_UK Board Member
Joined: 19 Nov 2008
Posts: 656 Location: North West UK
|
Posted: Sun Apr 26, 2009 3:28 pm Post subject: Re: message_die() was called multiple times? |
|
|
That does not answer the question.
The latest official released version is 2.0.23 but in one of the topics there is a download to update to 2.0.24 based upon some changes that would have been made by the phpbb team had they continued support for phpBB2
One of the changes for that "update" involves adding a new type of session.
It may be that if you have tried to add that "update" that you have made an error or there is some sort of class with an existing mod such as has happened to some of us when we tried.
Do you recall trying to install that "update" to 2.0.24?
Jim
|
|
Back to top |
|
|
Acaria Board Member
Joined: 20 Feb 2009
Posts: 238
|
Posted: Sun Apr 26, 2009 3:51 pm Post subject: Re: message_die() was called multiple times? |
|
|
Oh, I'm sorry. Didn't know there was an unofficial release.
But that means that I haven't tried to install anything past 2.0.23.
|
|
Back to top |
|
|
Jim_UK Board Member
Joined: 19 Nov 2008
Posts: 656 Location: North West UK
|
Posted: Sun Apr 26, 2009 4:00 pm Post subject: Re: message_die() was called multiple times? |
|
|
If something was working and then stops without you having made any changes such as installing a mod or update then the first thing to look at is the tables in the database although usually a problem there would result in an error message pointing to the tables.
I have attached a script. ftp it to the root of your board and run it with your browser. When done delete it.
Test and report back. The script will run even if the board id down as long as PHP is working.
Remove it from the zip first of course.
Jim
Description: |
|
Download |
Filename: |
fixtables.zip |
Filesize: |
580 Bytes |
Downloaded: |
1693 Time(s) |
|
|
Back to top |
|
|
Acaria Board Member
Joined: 20 Feb 2009
Posts: 238
|
Posted: Sun Apr 26, 2009 5:06 pm Post subject: Re: message_die() was called multiple times? |
|
|
I ran the script and deleted it after, but the forum is still down. D:
|
|
Back to top |
|
|
Acaria Board Member
Joined: 20 Feb 2009
Posts: 238
|
Posted: Sun Apr 26, 2009 7:13 pm Post subject: Re: message_die() was called multiple times? |
|
|
I believe it is this code which is causing the problem:
Code: | /**
* Our own generator of random values
* This uses a constantly changing value as the base for generating the values
* The board wide setting is updated once per page if this code is called
* With thanks to Anthrax101 for the inspiration on this one
* Added in phpBB 2.0.20
*/
function dss_rand()
{
global $db, $board_config, $dss_seeded;
$val = $board_config['rand_seed'] . microtime();
$val = md5($val);
$board_config['rand_seed'] = md5($board_config['rand_seed'] . $val . 'a');
if($dss_seeded !== true)
{
$sql = "UPDATE " . CONFIG_TABLE . " SET
config_value = '" . $board_config['rand_seed'] . "'
WHERE config_name = 'rand_seed'";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Unable to reseed PRNG", "", __LINE__, __FILE__, $sql);
}
$dss_seeded = true;
}
return substr($val, 4, 16);
} |
Anyone see fault with it?
|
|
Back to top |
|
|
khofech Board Member
Joined: 26 Feb 2009
Posts: 44
|
Posted: Mon Apr 27, 2009 3:23 am Post subject: Re: message_die() was called multiple times? |
|
|
Nothing related to 24 th version, this error happened so often, just undo the last mod u added and see if it become ok, or replace the pages one by one with the vanilla pages or just replace the page on witch the error happened and then u can select where the error is.
If the error happen in every page then it is usually the page head or tail or one of the pages in the includes.
Good luck.
|
|
Back to top |
|
|
Dog Cow Board Member
Joined: 18 Nov 2008
Posts: 378
|
Posted: Mon Apr 27, 2009 1:28 pm Post subject: Re: message_die() was called multiple times? |
|
|
Acaria wrote: |
message_die() was called multiple times. This isn't supposed to happen. Was message_die() used in page_tail.php?
|
These days, I only get that error if the users or sessions table are crashed/corrupted, and so the fix is to REPAIR them.
Jim_UK wrote: |
Do you recall trying to install that "update" to 2.0.24?
Jim |
If you try to update to 2.0.24 and don't update the database sessions table for the p_sid, then you'll certainly get an error!
_________________ Moof!
Lincoln's Tomb, Oak Ridge Cemetery, Springfield IL • Mac 512K Blog • Mac GUI |
|
Back to top |
|
|
Acaria Board Member
Joined: 20 Feb 2009
Posts: 238
|
Posted: Mon Apr 27, 2009 5:55 pm Post subject: Re: message_die() was called multiple times? |
|
|
How would I check to see if those tables have crashed?
[khofech]
But I haven't added any mods in, like, a month? It's been working fine up until two days ago.
It kinda' fixed itself, then went down again the next morning.
I'll try replacing all the includes files. :3
|
|
Back to top |
|
|
Ptirhiik Board Member
Joined: 19 Nov 2008
Posts: 114
|
Posted: Tue Apr 28, 2009 2:39 am Post subject: Re: message_die() was called multiple times? |
|
|
If it is not already done, change the sessions table type to MyISAM : this should prevent the table to crash so often.
|
|
Back to top |
|
|
Dog Cow Board Member
Joined: 18 Nov 2008
Posts: 378
|
|
Back to top |
|
|
|