Quiz Maximum Grade -Chaning this causes - Error Writing to Database

Quiz Maximum Grade -Chaning this causes - Error Writing to Database

by Bonnie Dilling -
Number of replies: 1

We are running 2.1 and cannot attempt any quizzes.  Quizzes that we attempt to complete as any moodle role (admin, teacher, student) all give us the "error writing to database" that I posted yesterday. 

I have also learned that when you attempt to change the Maximum Quiz Grade it also gives the Error Writing to Database.

Possibly these issues are related.  PLEASE HELP.

Here is the debugging message when attempting to change the quiz grade: (note - on yesterday's post I added the debugging message for attempting the quiz)

Error writing to database

More information about this error

Debug info: Binary logging not possible. Message: Transaction level 'READ-COMMITTED' in InnoDB is not safe for binlog mode 'STATEMENT'
UPDATE mdl_quiz SET grade = ? WHERE id = ?
[array (
0 => 15,
1 => '210',
)]
Stack trace:
  • line 396 of \lib\dml\moodle_database.php: dml_write_exception thrown
  • line 1056 of \lib\dml\mysqli_native_moodle_database.php: call to moodle_database->query_end()
  • line 1464 of \lib\dml\moodle_database.php: call to mysqli_native_moodle_database->set_field_select()
  • line 461 of \mod\quiz\locallib.php: call to moodle_database->set_field()
  • line 372 of \mod\quiz\edit.php: call to quiz_set_grade()
Bonnie
Average of ratings: -
In reply to Bonnie Dilling

Re: Quiz Maximum Grade -Chaning this causes - Error Writing to Database

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Bonnie,

This problem seems to be related either to the PHP version you are using or the type of database you are using on your Moodle site. It does not seem directly related to the Quiz module.

See this discussion.

Joseph