Seite 1 von 2

Index wird nicht angezeigt

Verfasst: 12.02.2007 20:45
von Crangerboy
Hey,

folgender Fehler:

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

Danke für de Hilfe

Verfasst: 12.02.2007 20:53
von punkface
Hey,

folgender KB-Artikel:

KB:multiple_times


:)

Verfasst: 12.02.2007 21:12
von Crangerboy
Danke nun das hier noch:

Critical Error!
message_die() was called multiple times.
Error #1
Information
Board_disable

Error #2


Line : 74
File : /hp/aa/af/gm/www/Klamm/phpBB2/includes/functions_hangman.php
SQL : SELECT * FROM phpbb_hangman_configs
Please, contact the webmaster. Thank you.

Was muss ich machen?

Verfasst: 12.02.2007 21:19
von punkface
Du könntest mal die functions_hangman.php als .txt-Datei verlinken (siehe: KB:datei)

Verfasst: 12.02.2007 21:35
von Crangerboy

Verfasst: 12.02.2007 21:54
von punkface
Existiert die Datenbanktabelle phpbb_hangman_configs bzw. hast du die bei der Installation des MODs angelegt?


ps: Ok, das mit der Datei verlinken, war jetzt relativ sinnlos.. sry

Verfasst: 12.02.2007 22:02
von Crangerboy
Sorry merke hab die db_install.php nicht ausgeführt,

aber wenn ich das machen will kommen auch Fehler so sieht die

Datei aus:

Code: Alles auswählen

<?php
/***************************************************************************
 *                               db_update.php
 *                            -------------------
 *
 *   copyright            : ¸2003 Freakin' Booty ;-P & Antony Bailey
 *   project              : http://sourceforge.net/projects/dbgenerator
 *   Website              : http://freakingbooty.no-ip.com/ & http://www.rapiddr3am.net
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//


if( !$userdata['session_logged_in'] )
{
	$header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';
	header($header_location . append_sid("login.$phpEx?redirect=db_update.$phpEx", true));
	exit;
}

if( $userdata['user_level'] != ADMIN )
{
	message_die(GENERAL_MESSAGE, 'You are not authorised to access this page');
}


$page_title = 'Updating the database';
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

echo '<table width="100%" cellspacing="1" cellpadding="2" border="0" class="forumline">';
echo '<tr><th>Updating the database</th></tr><tr><td><span class="genmed"><ul type="circle">';


$sql = array();
$sql[] = "DROP TABLE IF EXISTS " . $table_prefix . "hangman_configs";
$sql[] = "CREATE TABLE " . $table_prefix . "hangman_configs (
  config_name varchar(20) NOT NULL default '',
  config_value varchar(255) NOT NULL default ''
) TYPE=MyISAM";
$sql[] = "DROP TABLE IF EXISTS " . $table_prefix . "hangman_quess";
$sql[] = "CREATE TABLE " . $table_prefix . "hangman_quess (
  userid mediumint(8) NOT NULL default '0',
  hangmanid mediumint(8) NOT NULL default '0',
  tries tinyint(2) default NULL,
  losttime int(11) default NULL,
  quesscount int(4) NOT NULL default '1'
) TYPE=MyISAM";
$sql[] = "DROP TABLE IF EXISTS " . $table_prefix . "hangman_score";
$sql[] = "CREATE TABLE " . $table_prefix . "hangman_score (
  userid mediumint(8) NOT NULL default '0',
  created mediumint(8) NOT NULL default '0',
  won mediumint(8) NOT NULL default '0',
  lost mediumint(8) NOT NULL default '0',
  points mediumint(8) NOT NULL default '0',
  r_letters mediumint(8) NOT NULL default '0',
  w_letters mediumint(8) NOT NULL default '0'
) TYPE=MyISAM";
$sql[] = "DROP TABLE IF EXISTS " . $table_prefix . "hangman_words";
$sql[] = "CREATE TABLE " . $table_prefix . "hangman_words (
  hangmanid mediumint(8) NOT NULL auto_increment,
  userid mediumint(8) NOT NULL default '0',
  hangman_word text,
  hangman_help text,
  hangman_subject varchar(70) NOT NULL default '',
  max_tries tinyint(2) default NULL,
  time_created int(11) NOT NULL default '0',
  time_limit int(11) NOT NULL default '0',
  bwon tinyint(1) NOT NULL default '0',
  quessed_letters varchar(35) default NULL,
  bbcodeid varchar(10) NOT NULL default '',
  winner mediumint(8) default '0',
  PRIMARY KEY  (hangmanid)
) TYPE=MyISAM";

for( $i = 0; $i < count($sql); $i++ )
{
	if( !$result = $db->sql_query ($sql[$i]) )
	{
		$error = $db->sql_error();

		echo '<li>' . $sql[$i] . '<br /> +++ <font color="#FF0000"><b>Error:</b></font> ' . $error['message'] . '</li><br />';
	}
	else
	{
		echo '<li>' . $sql[$i] . '<br /> +++ <font color="#00AA00"><b>Successfull</b></font></li><br />';
	}
}


echo '</ul></span></td></tr><tr><td class="catBottom" height="28">&nbsp;</td></tr>';

echo '<tr><th>End</th></tr><tr><td><span class="genmed">Installation is now finished. Please be sure to delete this file now.<br />If you have run into any errors, please visit the <a href="http://www.phpbbsupport.co.uk" target="_phpbbsupport">phpBBSupport.co.uk</a> and ask someone for help.</span></td></tr>';
echo '<tr><td class="catBottom" height="28" align="center"><span class="genmed"><a href="' . append_sid("index.$phpEx") . '">Have a nice day</a></span></td></table>';

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

?>
Kommt dieser Fehler

Code: Alles auswählen

Warning: main(./extension.inc): failed to open stream: No such file or directory in /hp/aa/af/gm/www/Klamm/phpBB2/db/db_install.php on line 23

Warning: main(./extension.inc): failed to open stream: No such file or directory in /hp/aa/af/gm/www/Klamm/phpBB2/db/db_install.php on line 23

Warning: main(): Failed opening './extension.inc' for inclusion (include_path='.:/etc/php:/usr/local/share/php4.4:/usr/local/share/php4:/usr/local/share/php:/usr/share/php4.4:/usr/share/php4:/usr/share/php') in /hp/aa/af/gm/www/Klamm/phpBB2/db/db_install.php on line 23

Warning: main(./common.): failed to open stream: No such file or directory in /hp/aa/af/gm/www/Klamm/phpBB2/db/db_install.php on line 24

Warning: main(./common.): failed to open stream: No such file or directory in /hp/aa/af/gm/www/Klamm/phpBB2/db/db_install.php on line 24

Warning: main(): Failed opening './common.' for inclusion (include_path='.:/etc/php:/usr/local/share/php4.4:/usr/local/share/php4:/usr/local/share/php:/usr/share/php4.4:/usr/share/php4:/usr/share/php') in /hp/aa/af/gm/www/Klamm/phpBB2/db/db_install.php on line 24

Fatal error: Call to undefined function: session_pagestart() in /hp/aa/af/gm/www/Klamm/phpBB2/db/db_install.php on line 29
Danke warum kann ich die Daei nicht ausführen kannst du mir den Befehl

umwandeln das ich diesen manuell ausführen kann? Per phpmyadmin??

Verfasst: 12.02.2007 22:22
von punkface
Du musst die Datei db_install.php auch in das Hauptverzeichnis des Forums kopieren (also in das Verzeichnis in dem z.B. auch die memberlist.php zu finden ist) und im Browser aufrufen. Dann sollte es klappen :)

Verfasst: 12.02.2007 22:35
von Crangerboy
Nö trotzdem nicht:

Code: Alles auswählen

Warning: main(./includes/functions_hangman.php): failed to open stream: No such file or directory in /hp/aa/af/gm/www/Klamm/phpBB2/includes/page_header.php on line 356

Warning: main(./includes/functions_hangman.php): failed to open stream: No such file or directory in /hp/aa/af/gm/www/Klamm/phpBB2/includes/page_header.php on line 356

Warning: main(): Failed opening './includes/functions_hangman.php' for inclusion (include_path='.:/etc/php:/usr/local/share/php4.4:/usr/local/share/php4:/usr/local/share/php:/usr/share/php4.4:/usr/share/php4:/usr/share/php') in /hp/aa/af/gm/www/Klamm/phpBB2/includes/page_header.php on line 356

Fatal error: Call to undefined function: get_hangman_stats() in /hp/aa/af/gm/www/Klamm/phpBB2/includes/page_header.php on line 358
Sonst noch was?

Verfasst: 12.02.2007 22:50
von punkface
Benenn die functions_hangman.txt im Verzeichnis includes/ wieder in functions_hangman.php um ... ;)