baila
08-10-2005, 15:48
Ciao,oggi ho avuto un problema con il forum.Praticamente recandomi a questo indirizzo: http://www.baila-it.net/forum/index.php il server mi ha dato questo avviso: phpBB : Critical Error
Error creating new session
DEBUG MODE
SQL Error : 2013 Lost connection to MySQL server during query
INSERT INTO phpbb_sessions (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in) VALUES ('8c7210b44824744b089fb8abe82673c1', -1, 1128781208, 1128781208, '50685858', 0, 0)
Line : 158
File : /web/htdocs/www.baila-it.net/home/forum/includes/sessions.php
Io mi sono scaricato i file e ho trovato questo codice strano:
// Delete existing session
//
$sql = "DELETE FROM " . SESSIONS_TABLE . "
WHERE session_id = '$session_id'
AND session_user_id = $user_id";
if ( !$db->sql_query($sql) )
{
message_die(CRITICAL_ERROR, 'Error removing user session', '', __LINE__, __FILE__, $sql);
}
setcookie($cookiename . '_data', '', $current_time - 31536000, $cookiepath, $cookiedomain, $cookiesecure);
setcookie($cookiename . '_sid', '', $current_time - 31536000, $cookiepath, $cookiedomain, $cookiesecure);
return true;
}
//
// Append $SID to a url. Borrowed from phplib and modified. This is an
// extra routine utilised by the session code above and acts as a wrapper
// around every single URL and form action. If you replace the session
// code you must include this routine, even if it's empty.
//
function append_sid($url, $non_html_amp = false)
{
global $SID;
if ( !empty($SID) && !preg_match('#sid=#', $url) )
{
$url .= ( ( strpos($url, '?') != false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
}
return $url;
}
?>
Facendo il login sul server Mysql di aruba mi dava questo errore:
Messaggio di MySQL: #2003 - Il server non risponde
Devo preoccuparmi?Molti file gli ho modificati io a mano,vorrei sapere se è colpa mia o meno!
Grazie a chi risponderà! ;)
Error creating new session
DEBUG MODE
SQL Error : 2013 Lost connection to MySQL server during query
INSERT INTO phpbb_sessions (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in) VALUES ('8c7210b44824744b089fb8abe82673c1', -1, 1128781208, 1128781208, '50685858', 0, 0)
Line : 158
File : /web/htdocs/www.baila-it.net/home/forum/includes/sessions.php
Io mi sono scaricato i file e ho trovato questo codice strano:
// Delete existing session
//
$sql = "DELETE FROM " . SESSIONS_TABLE . "
WHERE session_id = '$session_id'
AND session_user_id = $user_id";
if ( !$db->sql_query($sql) )
{
message_die(CRITICAL_ERROR, 'Error removing user session', '', __LINE__, __FILE__, $sql);
}
setcookie($cookiename . '_data', '', $current_time - 31536000, $cookiepath, $cookiedomain, $cookiesecure);
setcookie($cookiename . '_sid', '', $current_time - 31536000, $cookiepath, $cookiedomain, $cookiesecure);
return true;
}
//
// Append $SID to a url. Borrowed from phplib and modified. This is an
// extra routine utilised by the session code above and acts as a wrapper
// around every single URL and form action. If you replace the session
// code you must include this routine, even if it's empty.
//
function append_sid($url, $non_html_amp = false)
{
global $SID;
if ( !empty($SID) && !preg_match('#sid=#', $url) )
{
$url .= ( ( strpos($url, '?') != false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
}
return $url;
}
?>
Facendo il login sul server Mysql di aruba mi dava questo errore:
Messaggio di MySQL: #2003 - Il server non risponde
Devo preoccuparmi?Molti file gli ho modificati io a mano,vorrei sapere se è colpa mia o meno!
Grazie a chi risponderà! ;)