Seite 2 von 3

vorab

Verfasst: 06.11.2005 19:10
von RalfThomas
vorab die Constants , als TXT
http://www.diskusportal.ch/phpBB2/inclu ... stants.txt

Obs die Datenbank gibt gehe ich ben nachschauen.

Gruss
Ralf

die

Verfasst: 06.11.2005 19:12
von RalfThomas
die sessionkeys gibt es.,
Aber warum hängt er Web2 etc...an

Gruss
Ralf

Re: die

Verfasst: 06.11.2005 19:22
von wartek
RalfThomas hat geschrieben:die sessionkeys gibt es.,
Aber warum hängt er Web2 etc...an

Gruss
Ralf
In der constants.php scheint alles ok.
Interessant ist nur, dass er die Datenbank nicht "übersetzt". das kann auch daran liegen wenn die Tabelle nicht der Bezeichnungskonvention

table_prefix . ' sessions_keys

entspricht. Was meinst Du mit Web2?. Wo wird das angehängt?

wartek

Verfasst: 06.11.2005 19:22
von Saint
Verlink auch mal bitte Deine sessions.php

Gruß

Saint

Re: die

Verfasst: 06.11.2005 19:32
von wartek
wartek hat geschrieben:Was meinst Du mit Web2?.
Sorry stand eh da.

Schau mal in die config.php ob der table_prefix so aussieht
$table_prefix = 'usr_web2_1';
und ob die Tabelle

usr_web2_1sessions_keys heißt

wartek

da steht

Verfasst: 06.11.2005 19:39
von RalfThomas
da steht
in der Confix.php

$table_prefix = 'phpbb_';

Re: da steht

Verfasst: 06.11.2005 19:47
von wartek
RalfThomas hat geschrieben:da steht
in der Confix.php

$table_prefix = 'phpbb_';
Das passt nicht ganz zu Deiner Fehlerangabe.
EDIT: In der Fehlerbeschreibung wird die table_prefix unterschiedlich ausgegeben
Table 'usr_web2_1.SESSIONS_KEYS_TABLE' doesn't exist

SELECT u.* FROM phpbb_users
Kann es sein dass in der sessions.php etwas hardcoded (usr_web2_1) drinnen steht?
Wie heißt die Tabelle tatsächlich?


wartek

also

Verfasst: 06.11.2005 20:06
von RalfThomas
ALSO
Das hier ist die Sessions
http://www.diskusportal.ch/phpBB2/includes/sessions.txt

Habe nun einen neuen Fehler habe mal *.rej Files angepasst.
Index startet nun. Möchte man was posten oder nun einen Thread öffnen kommt aber


Warning: main(): SAFE MODE Restriction in effect. The script whose uid is 0 is not allowed to access ./extension.inc owned by uid 638 in /srv/www/web2/html/phpBB2/viewtopic.php on line 25

Warning: main(./extension.inc): failed to open stream: Success in /srv/www/web2/html/phpBB2/viewtopic.php on line 25

Warning: main(): Failed opening './extension.inc' for inclusion (include_path='.:/usr/share/php') in /srv/www/web2/html/phpBB2/viewtopic.php on line 25

Warning: main(): Unable to access ./common. in /srv/www/web2/html/phpBB2/viewtopic.php on line 26

Warning: main(./common.): failed to open stream: No such file or directory in /srv/www/web2/html/phpBB2/viewtopic.php on line 26

Warning: main(): Failed opening './common.' for inclusion (include_path='.:/usr/share/php') in /srv/www/web2/html/phpBB2/viewtopic.php on line 26

Warning: main(): Unable to access ./includes/bbcode. in /srv/www/web2/html/phpBB2/viewtopic.php on line 27

Warning: main(./includes/bbcode.): failed to open stream: No such file or directory in /srv/www/web2/html/phpBB2/viewtopic.php on line 27

Warning: main(): Failed opening './includes/bbcode.' for inclusion (include_path='.:/usr/share/php') in /srv/www/web2/html/phpBB2/viewtopic.php on line 27

Warning: main(): Unable to access ./includes/functions_post. in /srv/www/web2/html/phpBB2/viewtopic.php on line 28

Warning: main(./includes/functions_post.): failed to open stream: No such file or directory in /srv/www/web2/html/phpBB2/viewtopic.php on line 28

Warning: main(): Failed opening './includes/functions_post.' for inclusion (include_path='.:/usr/share/php') in /srv/www/web2/html/phpBB2/viewtopic.php on line 28

Fatal error: Call to undefined function: message_die() in /srv/www/web2/html/phpBB2/viewtopic.php on line 54

Verfasst: 06.11.2005 20:20
von Saint
Du hast einen kompletten Abschnitt des Updates übersprungen:

Code: Alles auswählen

#
#-----[ FIND ]---------------------------------------------
#
	{// ( $userdata['user_session_time'] > $expiry_time && $auto_create ) ? $userdata['user_lastvisit'] : ( 

#
#-----[ REPLACE WITH ]---------------------------------------------
#
	{

#
#-----[ FIND ]---------------------------------------------
#
		$sessiondata['autologinid'] = (!$admin) ? (( $enable_autologin && $sessionmethod == SESSION_METHOD_COOKIE ) ? $auto_login_key : '') : $sessiondata['autologinid'];

#
#-----[ REPLACE WITH ]---------------------------------------------
#
		//
		// Regenerate the auto-login key
		//
		if ($enable_autologin)
		{
			list($sec, $usec) = explode(' ', microtime());
			mt_srand(hexdec(substr($session_id, 0, 8)) + (float) $sec + ((float) $usec * 1000000));
			$auto_login_key = uniqid(mt_rand(), true);
			
			if (isset($sessiondata['autologinid']) && (string) $sessiondata['autologinid'] != '')
			{
				$sql = 'UPDATE ' . SESSIONS_KEYS_TABLE . "
					SET last_ip = '$user_ip', key_id = '" . md5($auto_login_key) . "', last_login = $current_time
					WHERE key_id = '" . md5($sessiondata['autologinid']) . "'";
			}
			else
			{
				$sql = 'INSERT INTO ' . SESSIONS_KEYS_TABLE . "(key_id, user_id, last_ip, last_login)
					VALUES ('" . md5($auto_login_key) . "', $user_id, '$user_ip', $current_time)";
			}

			if ( !$db->sql_query($sql) )
			{
				message_die(CRITICAL_ERROR, 'Error updating session key', '', __LINE__, __FILE__, $sql);
			}
			
			$sessiondata['autologinid'] = $auto_login_key;
			unset($auto_login_key);
		}
		else
		{
			$sessiondata['autologinid'] = '';
		}

//		$sessiondata['autologinid'] = (!$admin) ? (( $enable_autologin && $sessionmethod == SESSION_METHOD_COOKIE ) ? $auto_login_key : '') : $sessiondata['autologinid'];
Gruß

Saint

aeh

Verfasst: 06.11.2005 20:40
von RalfThomas
aeh ?????
Die Zeile gibts bei mir gar nicht

$sessiondata['autologinid'] = (!$admin) ? (( $enable_autologin && $sessionmethod == SESSION_METHOD_COOKIE ) ? $auto_login_key : '') : $sessiondata['autologinid'];