Seite 2 von 4

Verfasst: 09.04.2004 23:48
von aidacha
jetzt bin ich beim ende der anleitung angekommen, da geht aber was net:



#-----[ OPEN ]------------------------------------------
# Only if your phpBB2 is older than 2.0.4!
#
includes/functions.php

#
#-----[ FIND ]------------------------------------------
# Only if your phpBB2 is older than 2.0.4!
#
?>

#
#-----[ BEFORE, ADD ]------------------------------------------
# Only if your phpBB2 is older than 2.0.4!
#

function redirect($url)
{
global $db, $board_config;

if (!empty($db))
{
$db->sql_close();
}

$server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';
$server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name']));
$server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : '';
$script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path']));
$script_name = ($script_name == '') ? $script_name : '/' . $script_name;
$url = preg_replace('#^\/?(.*?)\/?$#', '/\1', trim($url));

// Redirect via an HTML form for PITA webservers
if (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')))
{
header('Refresh: 0; URL=' . $server_protocol . $server_name . $server_port . $script_name . $url);
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta http-equiv="refresh" content="0; url=' . $server_protocol . $server_name . $server_port . $script_name . $url . '"><title>Redirect</title></head><body><div align="center">If your browser does not support meta redirection please click <a href="' . $server_protocol . $server_name . $server_port . $script_name . $url . '">HERE</a> to be redirected</div></body></html>';
exit;
}

// Behave as per HTTP/1.1 spec for others
header('Location: ' . $server_protocol . $server_name . $server_port . $script_name . $url);
exit;
}


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


na gut, ich öffne diesen ordner, suche ?>, kopiere das was gesagt wird hinein. speichere. aktualisiere das forum, und was kommt, wenn ich oben auf notizen klicke??

Could not obtain notes/user information.

DEBUG MODE

SQL Error : 1146 Table 'usr_web3129_1.phpbb_notes' doesn't exist

SELECT * FROM phpbb_notes WHERE poster_id = 2 ORDER BY post_time ASC

Line : 108
File : /var/www/web3129/html/phpbb2.0.8/notes.php



na gut, dann schau ich eben notes.php an. bei line 108 steht folgendes:

message_die(GENERAL_ERROR, "Could not obtain notes/user information.", '', __LINE__, __FILE__, $sql);


was isch das falsch?! :S[/b]

Verfasst: 09.04.2004 23:59
von Markus67
hi ...

was hast du denn für eine phpbb version ?
eine ältere als 2.04 ?

sonst kannst du den schritt weglassen ...

markus

Verfasst: 09.04.2004 23:59
von aidacha
argh, pc spinnt.

sry hab was falsches gemacht, jetzt als ichs richtig gemacht hab, geht das ganze forum net mehr.. steht immer: Parse error: parse error, unexpected $ in /var/www/web3129/html/phpbb2.0.8/includes/functions.php on line 777

Verfasst: 10.04.2004 00:02
von aidacha
was hast du denn für eine phpbb version ?
eine ältere als 2.04 ?
keine ahnung, wo kann ich das nachschauen?
beim verzeichnis online steht einfach: html/phpbb2.0.8/...

ist das die version? :S

Verfasst: 10.04.2004 00:02
von Markus67
hi ...

du musst das ganze zeug was für die
# Only if your phpBB2 is older than 2.0.4!
war wieder rausschmeissen ....

dann sollte es funzen

markus

Verfasst: 10.04.2004 00:04
von aidacha
k, jetzt is es weg.. aber löl nunja, wenn ich jetzt oben auf notizen klick steht: Line : 108
File : /var/www/web3129/html/phpbb2.0.8/notes.php

(bei dieser datei hab' ich nix geändert, musste sie nur raufladen)

Verfasst: 10.04.2004 00:11
von Markus67
hi ...

wie heisst denn die komplette fehlermeldung ?

markus

Verfasst: 10.04.2004 00:14
von aidacha
Line : 108
File : /var/www/web3129/html/phpbb2.0.8/notes.php

Verfasst: 10.04.2004 00:15
von aidacha
argh.. sry nochmals:

Could not obtain notes/user information.

DEBUG MODE

SQL Error : 1146 Table 'usr_web3129_1.phpbb_notes' doesn't exist

SELECT * FROM phpbb_notes WHERE poster_id = 2 ORDER BY post_time ASC

Line : 108
File : /var/www/web3129/html/phpbb2.0.8/notes.php

Verfasst: 10.04.2004 00:15
von Markus67
mehr nicht ?

markus