Fehlermeldung beim einloggen
Verfasst: 29.06.2003 21:31
Bekomme jetzt immer diese Meldung und kann mich nicht mehr einloggen:
Hier mal den Bereich in der phpBB2/includes/sessions.php DateiphpBB : Critical Error
Error updating last visit time
DEBUG MODE
SQL Error : 1054 Unknown column 'user_lastlogon' in 'field list'
UPDATE phpbb_users SET user_session_time = 1056914830, user_session_page = 0, user_lastvisit = 1052070654, user_reminded = '0', user_lastlogon = 1056914830, user_totallogon=user_totallogon+1 WHERE user_id = 2
Line : 194
File : /opt/web2/html/phpBB2/includes/sessions.php
Code: Alles auswählen
if ($error)
{
message_die(CRITICAL_ERROR, "Error creating new session", "", __LINE__, __FILE__, $sql);
}
}
}
if ( $user_id != ANONYMOUS )
{// ( $userdata['user_session_time'] > $expiry_time && $auto_create ) ? $userdata['user_lastvisit'] : (
$last_visit = ( $userdata['user_session_time'] > 0 ) ? $userdata['user_session_time'] : $current_time;
$sql = "UPDATE " . USERS_TABLE . "
SET user_session_time = $current_time, user_session_page = $page_id, user_lastvisit = $last_visit, user_reminded = '0', user_lastlogon = " . time() . ", user_totallogon=user_totallogon+1
WHERE user_id = $user_id";
if ( !$db->sql_query($sql) )
{
message_die(CRITICAL_ERROR, 'Error updating last visit time', '', __LINE__, __FILE__, $sql);
}
$userdata['user_lastvisit'] = $last_visit;
$sessiondata['autologinid'] = ( $enable_autologin && $sessionmethod == SESSION_METHOD_COOKIE ) ? $auto_login_key : '';
$sessiondata['userid'] = $user_id;
}
$userdata['session_id'] = $session_id;
$userdata['session_ip'] = $user_ip;
$userdata['session_user_id'] = $user_id;
$userdata['session_logged_in'] = $login;
$userdata['session_page'] = $page_id;
$userdata['session_start'] = $current_time;
$userdata['session_time'] = $current_time;
setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure);
setcookie($cookiename . '_sid', $session_id, 0, $cookiepath, $cookiedomain, $cookiesecure);
$SID = 'sid=' . $session_id;
return $userdata;
}