Errore improvviso: Si è verificato un errore durante la scrittura nel database

Errore improvviso: Si è verificato un errore durante la scrittura nel database

by Diego Ghirardello -
Number of replies: 1

Buongiorno a tutti, ho installato Moodle giusto un anno fa su un server. Tutto bene e tutto perfetto. Oggi improvvisamente mi hanno segnalato questo errore: "Si è verificato un errore durante la scrittura nel database". Cosa può essere successo?


Leggendo qua e la nel forum, ho trovato che bisogna abilitare qualcosa per avere maggiori informazioni sull'errore. Penso di esserci riuscito, questo quanto si vede. Come posso risolvere il problema e rimetterlo in funzione? Se qualcuno sa darmi qualche informazione. Grazie.


Debug info: INSERT command denied to user 'Sql702001'@'62.149.141.71' for table 'mdl_sessions'
INSERT INTO mdl_sessions (state,sid,sessdata,userid,timemodified,timecreated,lastip,firstip) VALUES(?,?,?,?,?,?,?,?)
[array (
0 => 0,
1 => 'eig0qfceu2f68ovkbfciv63me4',
2 => NULL,
3 => 0,
4 => 1417005471,
5 => 1417005471,
6 => '87.8.210.146',
7 => '87.8.210.146',
)]
Error code: dmlwriteexception
Stack trace:
  • line 444 of /lib/dml/moodle_database.php: dml_write_exception thrown
  • line 1080 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
  • line 1122 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
  • line 411 of /lib/classes/session/manager.php: call to mysqli_native_moodle_database->insert_record()
  • line 388 of /lib/classes/session/manager.php: call to core\session\manager::add_session_record()
  • line 79 of /lib/classes/session/manager.php: call to core\session\manager::initialise_user_session()
  • line 779 of /lib/setup.php: call to core\session\manager::start()
  • line 40 of /config.php: call to require_once()
  • line 31 of /index.php: call to require_once()

Average of ratings: -
In reply to Diego Ghirardello

Re: Errore improvviso: Si è verificato un errore durante la scrittura nel database

by Antonello Dylan -

Buongiorno Diego, prova a riparare la tabella delle sessioni, sicuramente è andata in crash.

Comando mysql:

REPAIR TABLE mdl_sessions