Dear all,
My site was working properly until it stopped working and students were not able to login; neither do I.
I couldn't eliminate the problem so I upgraded to the final version and used the same config.php to connect to the old database but I still get the following error:
Error writing to database
Debug info: INSERT command denied to user 'eduhoo'@'192.168.110.107' for table 'mdl2_sessions'
INSERT INTO mdl2_sessions (state,sid,sessdata,userid,timemodified,timecreated,lastip,firstip) VALUES(?,?,?,?,?,?,?,?)
[array (
0 => 0,
1 => '14srosrsgijttpqrgl3fpgq6t7',
2 => NULL,
3 => 0,
4 => 1386071498,
5 => 1386071498,
6 => '213.207.209.246',
7 => '213.207.209.246',
)]
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()
0014162564441
Would you please help me to get rid of the problem and login to my site?
Best regards,
Faramarz