When I try to upgrade assignments it says:
Error writing to database
I have linux with Mysql and have added max_allowed_packet=500M to /etc/my.cnf but to no avail.
The issue seems to be can't write to database - dmlwriteexception
DEbug settings below.
Help!
Default exception handler: Error writing to database Debug: Column 'sendstudentnotifications' cannot be null\nINSERT INTO mdl_assign (name,timemodified,course,intro,introformat,alwaysshowdescription,submissiondrafts,requiresubmissionstatement,sendnotifications,sendlatenotifications,sendstudentnotifications,duedate,cutoffdate,allowsubmissionsfromdate,grade,completionsubmit,teamsubmission,requireallteammemberssubmit,teamsubmissiongroupingid,blindmarking,attemptreopenmethod,maxattempts,markingworkflow,markingallocation) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)\n[array (\n 0 => 'SEMESTER PROJECT: Upload your word document here! (30% of your semester grade)',\n 1 => 1399963791,\n 2 => '15',\n 3 => ' <font size="2"><span style="font-family: verdana,arial,helvetica,sans-serif;">Please upload your project here as a single word document. Page one should be a cover page. </span><span class="dimmed_text"><span style="font-family: verdana,arial,helvetica,sans-serif;">Late submissions will be penalised 1 mark per day after the deadline (no exceptions). </span></span></font> ',\n 4 => '0',\n 5 => 1,\n 6 => '1',\n 7 => 0,\n 8 => '0',\n 9 => '0',\n 10 => NULL,\n 11 => '1367506500',\n 12 => 0,\n 13 => '1366588800',\n 14 => '30',\n 15 => 0,\n 16 => 0,\n 17 => 0,\n 18 => 0,\n 19 => 0,\n 20 => 'none',\n 21 => -1,\n 22 => 0,\n 23 => 0,\n)]\nError code: dmlwriteexception\n* line 446 of /lib/dml/moodle_database.php: dml_write_exception thrown\n* line 1098 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()\n* line 1144 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()\n* line 602 of /mod/assign/locallib.php: call to mysqli_native_moodle_database->insert_record()\n* line 109 of /mod/assign/upgradelib.php: call to assign->add_instance()\n* line 209 of /admin/tool/assignmentupgrade/locallib.php: call to assign_upgrade_manager->upgrade_assignment()\n* line 64 of /admin/tool/assignmentupgrade/batchupgrade.php: call to tool_assignmentupgrade_upgrade_assignment()\n, referer: http://moodle.cmcrc.com/admin/tool/assignmentupgrade/listnotupgraded.php