Help

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
esiason14
Registered User
Posts: 237
Joined: Tue Nov 02, 2004 3:42 am
Location: Annapolis, MD
Contact:

Help

Post by esiason14 »

If this is the wrong place to post I apologize...Just upgraded to 2.0.11 and it worked fine...Then I installed EasyMod...again fine. Then I tried to install the cashmod with EasyMod and thats where the problems started. Now when I click on any thread or forum, I get this message:

message_die() was called multiple times. This isn't supposed to happen. Was message_die() used in page_tail.php?


What do I do to fix it>

User avatar
nuckfan15
Registered User
Posts: 1849
Joined: Fri Jul 09, 2004 4:46 am
Location: Vancouver, BC
Name: Travis

Post by nuckfan15 »

Did you upload all the files and run the installer?

esiason14
Registered User
Posts: 237
Joined: Tue Nov 02, 2004 3:42 am
Location: Annapolis, MD
Contact:

Post by esiason14 »

yep, i did...also in the admin panel i get this error....

Error retrieving cash data

DEBUG MODE

SQL Error : 1146 Table 'fantasyp_phpBBdb.phpbb_cash' doesn't exist

SELECT * FROM phpbb_cash ORDER BY cash_order ASC

Line : 657
File : /home/fantasyp/public_html/phpBB2/includes/functions_cash.php

User avatar
pentapenguin
Former Team Member
Posts: 11030
Joined: Thu Jul 01, 2004 4:15 am
Location: GA, USA

Post by pentapenguin »

You didn't run the SQL commands that come with the Cash MOD.
Run them and see if that helps.
If it doesn't, you will need to ask on the MOD's preexisting thread in the MOD forum.
Support Resources: Support Request Template
If you need professional assistance with your board, please contact me for my reasonable rates.

esiason14
Registered User
Posts: 237
Joined: Tue Nov 02, 2004 3:42 am
Location: Annapolis, MD
Contact:

Post by esiason14 »

Can I manually insert it into the database? Any idea how?

sonyboy
Registered User
Posts: 2980
Joined: Thu Oct 07, 2004 2:10 am

Post by sonyboy »

Install this MOD, and it will tell you the problem:

Code: Select all

##############################################################
## MOD Title: Fix message_die for multiple errors MOD
## MOD Author: markus_petrux < phpbb.mods@phpmix.com > (Markus) http://www.phpmix.com
## MOD Description: This MOD replaces the "message_die() was called multiple times" message
##     with something more useful. It reports a list of all "those" error messages with all
##     relevant information. So that may help board administrators to identify the problem.
## MOD Version: 1.0.3
##
## Installation Level: (Easy)
## Installation Time: 3 Minutes
## Files To Edit: 1
##    includes/functions.php
## Included Files: 0
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## - Technical comments:
##   Actually, the "message_die() was called multiple times" message is unlike to happen on a
##   fresh phpBB board, but it might happen related to MODs, depending on how they are coded.
##
##
## - MOD related comments:
##   Tested with phpBB 2.0.10
##   This MOD is EasyMOD friendly.
##
##############################################################
## MOD History:
##
## 2004/10/17 - 1.0.3
## - Added a mailto: link to the "Please, contact the webmaster" message.
##   This will be only available if the CONFIG table has been read, though.
##   Thanks again to Ptirhiik for the idea. :-)
##   Certainly it sounds wiser than using "smoke signals" to contact the webmaster.
##
## 2004/10/17 - 1.0.2
## - Added a "Please, contact the webmaster" message at the end of the report.
## - Fixed define(HAS_DIED, 1); typo. Thanks to Ptirhiik for letting me know this.
##
## 2004/10/17 - 1.0.0
## - Initial release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------------
#
	if(defined('HAS_DIED'))
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//+MOD: Fix message_die for multiple errors MOD
	static $msg_history;
	if( !isset($msg_history) )
	{
		$msg_history = array();
	}
	$msg_history[] = array(
		'msg_code'	=> $msg_code,
		'msg_text'	=> $msg_text,
		'msg_title'	=> $msg_title,
		'err_line'	=> $err_line,
		'err_file'	=> $err_file,
		'sql'		=> $sql
	);
//-MOD: Fix message_die for multiple errors MOD

#
#-----[ FIND ]------------------------------------------------
#
		die("message_die() was called multiple times. This isn't supposed to happen. Was message_die() used in page_tail.php?");
#
#-----[ REPLACE WITH ]----------------------------------------
#
//+MOD: Fix message_die for multiple errors MOD

		//
		// This message is printed at the end of the report.
		// Of course, you can change it to suit your own needs. ;-)
		//
		$custom_error_message = 'Please, contact the %swebmaster%s. Thank you.';
		if ( !empty($board_config) && !empty($board_config['board_email']) )
		{
			$custom_error_message = sprintf($custom_error_message, '<a href="mailto:' . $board_config['board_email'] . '">', '</a>');
		}
		else
		{
			$custom_error_message = sprintf($custom_error_message, '', '');
		}
		echo "<html>\n<body>\n<b>Critical Error!</b><br />\nmessage_die() was called multiple times.<br />&nbsp;<hr />";
		for( $i = 0; $i < count($msg_history); $i++ )
		{
			echo '<b>Error #' . ($i+1) . "</b>\n<br />\n";
			if( !empty($msg_history[$i]['msg_title']) )
			{
				echo '<b>' . $msg_history[$i]['msg_title'] . "</b>\n<br />\n";
			}
			echo $msg_history[$i]['msg_text'] . "\n<br /><br />\n";
			if( !empty($msg_history[$i]['err_line']) )
			{
				echo '<b>Line :</b> ' . $msg_history[$i]['err_line'] . '<br /><b>File :</b> ' . $msg_history[$i]['err_file'] . "</b>\n<br />\n";
			}
			if( !empty($msg_history[$i]['sql']) )
			{
				echo '<b>SQL :</b> ' . $msg_history[$i]['sql'] . "\n<br />\n";
			}
			echo "&nbsp;<hr />\n";
		}
		echo $custom_error_message . '<hr /><br clear="all">';
		die("</body>\n</html>");
//-MOD: Fix message_die for multiple errors MOD
#
#-----[ FIND ]------------------------------------------------
#
	define(HAS_DIED, 1);
#
#-----[ REPLACE WITH ]----------------------------------------
#
	define('HAS_DIED', 1);
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM

sonyboy
Registered User
Posts: 2980
Joined: Thu Oct 07, 2004 2:10 am

Post by sonyboy »

Yep you could through phpmyadmin.

esiason14
Registered User
Posts: 237
Joined: Tue Nov 02, 2004 3:42 am
Location: Annapolis, MD
Contact:

Post by esiason14 »

Ok, I figure it out. FYI for anyone else who runs into this problem.

Go to phpmyadmin.
Click on your phpbb database.
Go to "sql" button,
open the text file that contains the sql code. and voila....fixed...

Swerve1000
Registered User
Posts: 146
Joined: Sat Apr 16, 2005 1:01 am
Location: Nottingham, England

Post by Swerve1000 »

esiason14 wrote: Ok, I figure it out. FYI for anyone else who runs into this problem.

Go to phpmyadmin.
Click on your phpbb database.
Go to "sql" button,
open the text file that contains the sql code. and voila....fixed...


Where do I find phpmyadmin?

Locked

Return to “2.0.x Support Forum”