Hi everyone
So... I'm a PHP dev, who also administrate several moodle at work.
I migrated all of ours moodle from 3.5/3.8 to 3.9.8 in August (with PHP 7.4, mariadb 10.5)
Since then, users can't send private message
The error is :
Error writing to database
Debug info: Column 'contextid' cannot be null
INSERT INTO mdl_message_conversations (type,name,convhash,component,itemtype,itemid,contextid,enabled,timecreated,timemodified) VALUES(?,?,?,?,?,?,?,?,?,?)
[array (
0 => 1,
1 => NULL,
2 => 'f060c567554ebcac9ace48e81b29bc4707f6809b',
3 => NULL,
4 => NULL,
5 => NULL,
6 => NULL,
7 => 1,
8 => 1632747922,
9 => 1632747922,
)]
Error code: dmlwriteexception
Stack trace:INSERT INTO mdl_message_conversations (type,name,convhash,component,itemtype,itemid,contextid,enabled,timecreated,timemodified) VALUES(?,?,?,?,?,?,?,?,?,?)
[array (
0 => 1,
1 => NULL,
2 => 'f060c567554ebcac9ace48e81b29bc4707f6809b',
3 => NULL,
4 => NULL,
5 => NULL,
6 => NULL,
7 => 1,
8 => 1632747922,
9 => 1632747922,
)]
Error code: dmlwriteexception
- line 489 of /lib/dml/moodle_database.php: dml_write_exception thrown
- line 1357 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1403 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
- line 2556 of /message/classes/api.php: call to mysqli_native_moodle_database->insert_record()
- line 138 of /lib/messagelib.php: call to core_message\api::create_conversation()
- line 367 of /message/lib.php: call to message_send()
- line 32 of /admin/user/user_bulk_message.php: call to message_post_message()
I completly stuck, don't really known what to do/try now, have been searching the web for hours...
My last shot is doing the minor update to moodle 3.9.10
Any guess ? Any lead ?