Getting error when adding new book resource in 2.3

Getting error when adding new book resource in 2.3

by Glenn Sisson -
Number of replies: 7

Hi,

I am testing 2.3 (Build: 20120625) and when attempting to add a new Book resource I get the foloowing error when trying to save and return to course:

Debug info: Field 'summary' doesn't have a default value
INSERT INTO mdl_book (name,numbering,course,timecreated,timemodified,customtitles) VALUES(?,?,?,?,?,?)
[array (
0 => 'Test book 2',
1 => '1',
2 => '2',
3 => 1340779874,
4 => 1340779874,
5 => 0,
)]
Error code: dmlwriteexception
Stack trace:
  • 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()

This is an ugraded install of 2.3 from 2.2.3

I have tried differerent browsers etc without effect.

Please help.

Average of ratings: -
In reply to Glenn Sisson

Re: Getting error when adding new book resource in 2.3

by Glenn Sisson -

Bump.

Anybody out there?

In reply to Glenn Sisson

Re: Getting error when adding new book resource in 2.3

by Ankit Agarwal -

Is it a fresh 2.3 install? I can add book resources without any issues on the same build.

In reply to Ankit Agarwal

Re: Getting error when adding new book resource in 2.3

by Glenn Sisson -

It is an upgrade from 2.2.3+ to 2.3.

Yesterday I upgraded again to the lastest release of 2.3. Still getting the error.

Of note, when creating a new book, I write the description. When I click save it says I need to add the desctiption (required field) despite text being there. Click save again and I get the error.

In reply to Glenn Sisson

Re: Getting error when adding new book resource in 2.3

by Glenn Sisson -

Anybody have any thoughts on this error?

In reply to Glenn Sisson

Re: Getting error when adding new book resource in 2.3

by Louise Weber -

IT dept upgraded Moodle to 2.3  When I go in to create a Book I get the 404 error message when I click on Save and Display.  After I back out and go to the Navigation Block and click on my Book everything is displayed.  Same thing happens when I add a chapter/subchapter.  Any thoughts?

In reply to Louise Weber

Re: Getting error when adding new book resource in 2.3

by Glenn Sisson -

I am still getting this error.

Anybody able to help. Would like to use this feature (one of the main reasons i upgraded to 2.3).

In reply to Glenn Sisson

Re: Getting error when adding new book resource in 2.3

by Glenn Sisson -

This issue was resolved by deleting the activity in the activity manager and then automatically having it re-instal when click on notifications.

Unsure of cause of problem though.