We had issues with a corrupted database in moodle 2.7 and data has been restored from two weeks old backup. Another failure happened and now users cannot view or send messages. This is the screenshot of what the issue looks like for every user when he/she navigate into "send a message" link on a user profile.
I turned "debugging on" and got these errors on the screen.
Error reading from database
Debug info: MySQL server has gone away
SELECT * FROM mdl_message_read WHERE ((useridto = ? AND useridfrom = ?) OR
(useridto = ? AND useridfrom = ?)) AND NOT (useridfrom=? AND notification=1) ORDER BY timecreated desc LIMIT 0, 8
0 => '3',
1 => '58',
2 => '58',
3 => '3',
4 => '3',
Error code: dmlreadexception
line 443 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 1080 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1305 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
line 1948 of /message/lib.php: call to moodle_database->get_records_select()
line 2031 of /message/lib.php: call to message_get_history()
line 296 of /message/index.php: call to message_print_message_history()
Any help on this regard is very much appreciated. Looking forward to quick replies.
Many thanks in advance.