I am seeing the same behavior. Here is the stack trace with debugging on. Please note, this site was upgraded from 1.9 to 2.1 last year. It was not until we upgraded to 2.3.1 two weeks ago that is began to happen. Thanks for any help you can provide.
Debug info: Unknown column 'revision' in 'field list'
UPDATE mdl_book SET revision = ? WHERE id = ?
[array (
0 => 1,
1 => '50',
)]
Error code: dmlwriteexception
Stack trace:
- line 410 of /lib/dml/moodle_database.php: dml_write_exception thrown
- line 1207 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1529 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->set_field_select()
- line 100 of /mod/book/edit.php: call to moodle_database->set_field()
Output buffer: Notice: Undefined property: stdClass::$revision in /srv/www/htdocs/mod/book/edit.php on line 100 Notice: Undefined index: revision in /srv/www/htdocs/lib/dml/mysqli_native_moodle_database.php on line 1192