message_die() was called multiple times. This isn't supposed

Eine Neuinstallation von phpBB 2.0 wird auf phpBB.de nicht mehr unterstützt.
Siehe auch Entwicklungs-Ende von phpBB 2.0 - Auswirkungen auf phpBB.de
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.1, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.

Eine Neuinstallation von phpBB 2.0 wird auf phpBB.de nicht mehr unterstützt.
Siehe auch Entwicklungs-Ende von phpBB 2.0 - Auswirkungen auf phpBB.de
Gesperrt
Computerlink
Mitglied
Beiträge: 260
Registriert: 06.08.2004 13:50
Wohnort: Bern
Kontaktdaten:

message_die() was called multiple times. This isn't supposed

Beitrag von Computerlink »

Ich erhalte folgende Fehlermeldung:
message_die() was called multiple times. This isn't supposed to happen. Was message_die() used in page_tail.php?
Was bedeutet das?
Zuletzt geändert von Computerlink am 21.11.2005 11:19, insgesamt 1-mal geändert.
modbo
Mitglied
Beiträge: 451
Registriert: 10.12.2004 11:12

Beitrag von modbo »

Installieren, und du (wir) wissen mehr ...

Code: Alles auswählen

############################################################## 
## 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 
Computerlink
Mitglied
Beiträge: 260
Registriert: 06.08.2004 13:50
Wohnort: Bern
Kontaktdaten:

Beitrag von Computerlink »

Danke :wink:
Zuletzt geändert von Computerlink am 21.11.2005 11:19, insgesamt 1-mal geändert.
Benutzeravatar
yks
Mitglied
Beiträge: 1295
Registriert: 10.07.2004 02:31

Beitrag von yks »

vielen dank modbo :)
schleppe die fehlermeldung nämlich auch schon seit einigen versionen mit.

also, bei mir gibt es die fehlermeldung, wenn ich jemanden banne.
habe das mödchen nun mal eingebaut und bekomme nun folgende fehlermeldung :
Critical Error!
message_die() was called multiple times.
Error #1
You_been_banned

Error #2

Line : 132
File : /is/htdocs/21424/www.claudias-page.de/forum/includes/fun ... _admin.php
SQL : SELECT * FROM phpbb_jr_admin_users WHERE user_id =
Please, contact the webmaster. Thank you.
sehe ich mir die stelle in der functions_jr_admin.php an, steht dort dies :
message_die(GENERAL_ERROR, $error, '', __LINE__, __FILE__, $sql);
kann da aber keinen fehler entdecken.

hat von euch noch jemand einen tip ?

viele grüße, yks
Mit subsilver2 macht es noch viel mehr Spaß ! :)
Gesperrt

Zurück zu „phpBB 2.0: Installation und Update“