Seite 1 von 1

Multi-Forums Pro Host - message_die() was called multiple...

Verfasst: 19.04.2005 14:49
von Junior
Hallo

ich habe so eben Multi-Forums Pro Host installiert. Nach der Installation erhalte ich bei Aufruf der Homepage http://www.typo3forum.net folgende Fehlermeldung:
message_die() was called multiple times. This isn't supposed to happen. Was message_die() used in page_tail.php?
Kann mir jemand einen Hinweis geben worauf die zurückzuführen ist?


Lieben Dank. Junior

Verfasst: 19.04.2005 15:02
von Junior
Hi

Ich habe jetzt mit folgendem Hack das Problem lösen können.
#
#-----[ 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
Dafür erscheint nun diese Fehlermeldung:
Critical Error!
message_die() was called multiple times.
Error #1
Could not query attachment information

Line : 80
File : /home/htdocs/web13/html/attach_mod/attachment_mod.php
SQL : SELECT * FROM typo3forumnet_attachments_config
Error #2
Could not open subSilver template config file

Line : 363
File : /home/htdocs/web13/html/includes/functions.php
Any hints?

Danke. Junior

Verfasst: 19.04.2005 15:15
von Junior
OK, zur Fehlermeldung, dass er SubSilver vermisst. Kein Wunder, da ich dieses Template gar nicht nutze. Mhm... wie kann ich ihm das austreiben, dass er nach SubSilver sucht?

Lieben Gruss

Junior