Update von 2.1.2
-
Anonymous
Update von 2.1.2
Hi!
Habe noch eine sehr alte Version des DL Mods und will nun updaten.
Sehe ich das richtig, dass ich alle alten Dateien überschreiben muss und dann selbst suchen muss, welche Codes sich geändert haben, oder gibt es wo eine Updateanleitung?
Greetz BE
Habe noch eine sehr alte Version des DL Mods und will nun updaten.
Sehe ich das richtig, dass ich alle alten Dateien überschreiben muss und dann selbst suchen muss, welche Codes sich geändert haben, oder gibt es wo eine Updateanleitung?
Greetz BE
-
oxpus
-
Anonymous
-
Anonymous
So habe nun das Update gemacht aber ich bekomme alle moeglichen fehler!
aber das auch nur, wenn ich nicht angemeldet bin, dann aber auf jeder seite unter dem forum:
Testaccount:
Nick : Testperson
PW: test
aber das auch nur, wenn ich nicht angemeldet bin, dann aber auf jeder seite unter dem forum:
Testarea Foren-Übersicht
Allgemeiner Fehler
Ein Fehler ist aufgetreten.
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2
SELECT * FROM phpbb_jr_admin_users WHERE user_id =
Line : 132
File : functions_jr_admin.php
Anzusehen unter: www.testarea.biologie-chemie-forum.demessage_die() was called multiple times. This isn't supposed to happen. Was message_die() used in page_tail.php?
Testaccount:
Nick : Testperson
PW: test
-
modbo
Du kannst mal folgenden Mod installieren. Anschließend fird exakter ausgegeben, wo der Fehler liegt.BraveEagle hat geschrieben:message_die() was called multiple times. This isn't supposed to happen. Was message_die() used in page_tail.php?
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 /> <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 " <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 -
Anonymous
Code: Alles auswählen
Allgemeiner Fehler
Ein Fehler ist aufgetreten.
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2
SELECT * FROM phpbb_jr_admin_users WHERE user_id =
Line : 132
File : functions_jr_admin.php
Critical Error!
message_die() was called multiple times.
Error #1
Line : 132
File : /www/htdocs/bcforuma/includes/functions_jr_admin.php
SQL : SELECT * FROM phpbb_jr_admin_users WHERE user_id =
Error #2
Line : 132
File : /www/htdocs/bcforuma/includes/functions_jr_admin.php
SQL : SELECT * FROM phpbb_jr_admin_users WHERE user_id =
Please, contact the webmaster. Thank you.-
Anonymous
-
oxpus
-
Anonymous
Sorry, dass die Antwort so lange auf sich hat warten lassen, aber ich hatte diese WOche mehrere Klausuren und nun endlich Semesterferien.
Also es sind mehrere Sprachvariablen drin: admin_jr_admin.php
Also es sind mehrere Sprachvariablen drin: admin_jr_admin.php
-
oxpus
Also dieser Teil
sollte besser so aussehen:
Code: Alles auswählen
/****************************************************************************
/** Module Setup
/***************************************************************************/
define('IN_PHPBB', true);
define('MOD_VERSION', '2.0.5');
define('MOD_CODE', 1);
$phpbb_root_path = '../';
include($phpbb_root_path . 'extension.inc');
include_once($phpbb_root_path."includes/functions_jr_admin.$phpEx");
include_once("pagestart.$phpEx");
find_lang_file_nivisec('lang_jr_admin');
if (!empty($setmodules))
{
$filename = basename(__FILE__);
$module['Users']['Jr_Admin'] = $filename;
return;
}Code: Alles auswählen
/****************************************************************************
/** Module Setup
/***************************************************************************/
define('IN_PHPBB', true);
define('MOD_VERSION', '2.0.5');
define('MOD_CODE', 1);
if (!empty($setmodules))
{
$filename = basename(__FILE__);
$module['Users']['Jr_Admin'] = $filename;
return;
}
$phpbb_root_path = './../';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path."includes/functions_jr_admin.$phpEx");
include("pagestart.$phpEx");
find_lang_file_nivisec('lang_jr_admin');-
Anonymous
auch das hat leider nichts gebracht. Ist immer noch die Fehlermeldung (fast im Footer: http://testarea.biologie-chemie-forum.de/
*edit*
habe auch mal die functions_jr_admin.txt verlinkt
*edit*
habe auch mal die functions_jr_admin.txt verlinkt
-
oxpus
1. Beides hat nichts miteinander zu tun
2. Der Dl Mod ist hier fehlerfrei
3. Der Junior Admin Fehler bei Dir hat nichts mit dem DL Mod zu tun
4. Der Einbau des Jr. Admin Mods bei Dir ist scheinbar fehlerhaft.
Hier mal eine Lösung, die zwar nicht im Dinne des Erfinders liegt, aber helfen könnte:
2. Der Dl Mod ist hier fehlerfrei
3. Der Junior Admin Fehler bei Dir hat nichts mit dem DL Mod zu tun
4. Der Einbau des Jr. Admin Mods bei Dir ist scheinbar fehlerhaft.
Hier mal eine Lösung, die zwar nicht im Dinne des Erfinders liegt, aber helfen könnte:
Code: Alles auswählen
#
#-----[ OPEN ]-----
#
includes/page_tain.php
#
#-----[ FIND ]------
#
$admin_link = jr_admin_make_admin_link();
#
#-----[ REPLACE WITH ]-----
#
$admin_link = jr_admin_make_admin_link($userdata['user_id']);
#
#-----[ OPEN ]-----
#
includes/functions_jr_admin.php
#
#-----[ FIND ]-----
#
function jr_admin_make_admin_link()
{
global $lang, $userdata, $phpEx;
$jr_admin_userdata = jr_admin_get_user_info($userdata['user_id']);
if (!empty($jr_admin_userdata['user_jr_admin']) || $userdata['user_level'] == ADMIN)
{
return '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />';
}
else
{
return '';
}
}
#
#-----[ REPLACE WITH ]-----
#
function jr_admin_make_admin_link($user_id)
{
global $lang, $phpEx;
$jr_admin_userdata = jr_admin_get_user_info($user_id);
if (!empty($jr_admin_userdata['user_jr_admin']) || $userdata['user_level'] == ADMIN)
{
return '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />';
}
else
{
return '';
}
}
#
#-----[ SAVE/CLOSE ALL FILES ]-----
#
# EoM-
Anonymous
Das hat leider auch nichts gebracht. Das komische ist nur, dass ich den Fehler erst seit dem Update habe (den Junior Mod habe ich sicher schon über ein Jahr). Ich werde nun nochmal ( wohl erst kommende woche) ein Backup aufspielen und dann den DL Mod nochmal neu Updaten. Dann kann ich mir ja sicher sein, ob der Fehler durch das Update ensteht, oder ob ich ein Fehler gemacht habe. ( da das ja nur ne Testumgebung vom Originalen ist, macht das nichts
)
Trotzdem bisher vielen Dank für den Support
Ich melde mich kommende Woche nochmal
BE
Trotzdem bisher vielen Dank für den Support
Ich melde mich kommende Woche nochmal
BE
-
oxpus