Has anyone else had this error? Every time no matter the settings on the re-engagement activity I use, it gives me this error below.
Moodle Version 3.3.1 (Build: 20170710)
PHP Version 5.6.31
We are set up with max_allowed_packet = 500M
Error writing to database
More information about this error
Debug info: Column 'visibleoncoursepage' cannot be null
INSERT INTO mdl_course_modules (course,module,instance,visible,visibleoncoursepage,visibleold,idnumber,groupmode,groupingid,completion,completiongradeitemnumber,completionview,completionexpected,availability,showdescription,added)
VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
[array (
0 => '44',
1 => 41,
2 => 0,
3 => 0,
4 => NULL,
5 => 0,
6 => '',
7 => 0,
8 => 0,
9 => 2,
10 => NULL,
11 => 0,
12 => 0,
13 =>
'{"op":"&","c":[{"type":"completion","cm":2279,"e":1}],"showc":[true]}',
14 => 0,
15 => 1501808416,
)]
Error code: dmlwriteexception
Stack trace:
- line 489 of /lib/dml/moodle_database.php: dml_write_exception thrown
- line 1259 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1305 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
- line 834 of /course/lib.php: call to mysqli_native_moodle_database->insert_record()
- line 108 of /course/modlib.php: call to add_course_module()
- line 154 of /course/modedit.php: call to add_moduleinfo()