Just upgraded to 2.2.1+ (Build: 20120217), I can't regrade quizzes. With full debug, I get:
UPDATE mdl_question_attempt_steps SET questionattemptid = ?,sequencenumber = ?,state = ?,fraction = ?,timecreated = ?,userid = ? WHERE id=?
[array (
0 => '361685',
1 => 2,
2 => 'gradedright',
3 => 1,
4 => '1329840836',
5 => '3565',
6 => '897468',
)]
- line 397 of /lib/dml/moodle_database.php: dml_write_exception thrown
- line 999 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1031 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->update_record_raw()
- line 192 of /question/engine/datalib.php: call to mysqli_native_moodle_database->update_record()
- line 1193 of /question/engine/datalib.php: call to question_engine_data_mapper->update_question_attempt_step()
- line 91 of /question/engine/lib.php: call to question_engine_unit_of_work->save()
- line 405 of /mod/quiz/report/overview/report.php: call to question_engine::save_questions_usage_by_activity()
- line 449 of /mod/quiz/report/overview/report.php: call to quiz_overview_report->regrade_attempt()
- line 162 of /mod/quiz/report/overview/report.php: call to quiz_overview_report->regrade_attempts()
- line 100 of /mod/quiz/report.php: call to quiz_overview_report->display()
This doesn't seem to be MDL-27314 in that I can delete attempts just fine. A dry run at regrade also seems to work, but a permanent regrade doesn't work. Ideas, thoughts,etc? Thanks.