I've this kind of problem. Everything worked out fine - all the installation, activity selection and adding. But problem started when I Save and return to course, it shows this message:
Debug info: Field 'message' doesn't have a default value
INSERT INTO mdl_nanogong (name,maxduration,course,timecreated) VALUES(?,?,?,?)
0 => 'NanoGong',
1 => '300',
2 => '542',
3 => 1345225867,
- line 397 of /lib/dml/moodle_database.php: dml_write_exception thrown
- line 893 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 935 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
- line 85 of /mod/nanogong/lib.php: call to mysqli_native_moodle_database->insert_record()
- line 443 of /course/modedit.php: call to nanogong_add_instance()
How to fix this problem? Please help!
I have recently upgraded Moodle 1.9 to 2.2.3+ (Build: 20120519) and wanted to add nanogong 4.2.2.