Hi all
I am trying to set up an assignment but any combination of setting choices all lead me to the same end result of a 'Error writing to database'
We are on 3.6.3+ and are on a hosted domain
The debug information is below. Hoping someone can provide some insight. I did ready the details in the link which talks about max_allowed_packets. However being on a hosted server i'm not sure I can do much, so thought I'd see what the community said in case it was something else triggering it that I may be able to fix.
Jayden
Error writing to database
More information about this error
×Debug info: Field
'id' doesn't have a default value
INSERT INTO mdl_assign_plugin_config (assignment,subtype,plugin,name,value)
VALUES(?,?,?,?,?)
[array (
0 => '11',
1 => 'assignsubmission',
2 => 'onlinetext',
3 => 'enabled',
4 => 0,
)]
Error code: dmlwriteexception
×Stack trace:
· line 489 of /lib/dml/moodle_database.php: dml_write_exception thrown
· line 1329 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
· line 1375 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
· line 341 of /mod/assign/assignmentplugin.php: call to mysqli_native_moodle_database->insert_record()
· line 220 of /mod/assign/assignmentplugin.php: call to assign_plugin->set_config()
· line 1208 of /mod/assign/locallib.php: call to assign_plugin->disable()
· line 693 of /mod/assign/locallib.php: call to assign->update_plugin_instance()
· line 41 of /mod/assign/lib.php: call to assign->add_instance()
· line 124 of /course/modlib.php: call to assign_add_instance()
· line 154 of /course/modedit.php: call to add_moduleinfo()