Hi when I add a new book resource to a course i get this error whn i go to save.
INSERT INTO mdl_book (name,numbering,course,timecreated,timemodified,customtitles) VALUES(?,?,?,?,?,?)
[array (
0 => 'crm',
1 => '1',
2 => '111',
3 => 1343384561,
4 => 1343384561,
5 => 0,
)]
Error code: dmlwriteexception
- line 410 of \lib\dml\moodle_database.php: dml_write_exception thrown
- line 948 of \lib\dml\mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 990 of \lib\dml\mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
- line 69 of \mod\book\lib.php: call to mysqli_native_moodle_database->insert_record()
- line 447 of \course\modedit.php: call to book_add_instance()