|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Dec 2000
Città: Provincia di Vicenza
Messaggi: 13823
|
Per esperti di Php
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: Codice:
// 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; } ?> 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à! ![]()
__________________
AMD Ryzen™ 9 5900X/Cosmos C700P/Crosshair VII HERO (WI-FI) /Corsair AX 850Watt 80 PLUS Gold/HyperX Predator HX440C19PB3K2 B-Die@3600Mhz /Nvdia RTX 4070TI/Samsung 980 PRO NVMe M.2 2TB X2/Sound Blaster Z/Monitor LG 32GK850G/Pianeta Fibra FTTH2500/500->GT-AX6000/Le mie trattative |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Nov 2002
Città: Milano
Messaggi: 5375
|
Ti conviene postare la tua domanda nel settore programmazione.
Lì dovresti avere migliori possibilità che qualcuno ti sappia aiutare.
__________________
CiAO |
![]() |
![]() |
![]() |
#3 |
Senior Member
Iscritto dal: Dec 2000
Città: Provincia di Vicenza
Messaggi: 13823
|
Hai ragione,grazie!
![]()
__________________
AMD Ryzen™ 9 5900X/Cosmos C700P/Crosshair VII HERO (WI-FI) /Corsair AX 850Watt 80 PLUS Gold/HyperX Predator HX440C19PB3K2 B-Die@3600Mhz /Nvdia RTX 4070TI/Samsung 980 PRO NVMe M.2 2TB X2/Sound Blaster Z/Monitor LG 32GK850G/Pianeta Fibra FTTH2500/500->GT-AX6000/Le mie trattative |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 05:20.