phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

message_die() was called multiple times?

Goto page 1, 2  Next
 
Search this topic... | Search General Support... | Search Box
Register or Login to Post    Index » General Support  Previous TopicPrint TopicNext Topic
Author Message
Acaria
Board Member



Joined: 20 Feb 2009

Posts: 238



PostPosted: 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


flag
PostPosted: 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



PostPosted: 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


flag
PostPosted: 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



PostPosted: 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


flag
PostPosted: 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



PostPosted: 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


flag
PostPosted: 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



fixtables.zip
 Description:

Download
 Filename:  fixtables.zip
 Filesize:  580 Bytes
 Downloaded:  1693 Time(s)

Back to top
Acaria
Board Member



Joined: 20 Feb 2009

Posts: 238



PostPosted: 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



PostPosted: 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



PostPosted: 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


flag
PostPosted: 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 ILMac 512K BlogMac GUI
Back to top
Acaria
Board Member



Joined: 20 Feb 2009

Posts: 238



PostPosted: 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


flag
PostPosted: 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


flag
PostPosted: Tue Apr 28, 2009 10:13 am 
Post subject: Re: message_die() was called multiple times?

Acaria wrote:
How would I check to see if those tables have crashed?

Run this query:
Code:
CHECK TABLE `phpbb_sessions` , `phpbb_users`;

If the status for the two tables is not OK, then there's a problem.

For further reference: http://dev.mysql.com/doc/refman/5.1/en/check-table.html

_________________
Moof!
Lincoln's Tomb, Oak Ridge Cemetery, Springfield ILMac 512K BlogMac GUI
Back to top
Display posts from previous:   
Register or Login to Post    Index » General Support  Previous TopicPrint TopicNext Topic
Page 1 of 2 All times are GMT - 4 Hours
Goto page 1, 2  Next
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0715 seconds using 18 queries. (SQL 0.0106 Parse 0.0115 Other 0.0494)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo