We are running Moodle 3.4.5 and recently upgraded from Moodle 3.1.10.
We are seeing this in our Moodle cron logs:
Looking for quiz overdue quiz attempts...
Error while processing attempt 2332034 at 57229 quiz:
Coding error detected, it must be fixed by a programmer: This behaviour (manualgraded) cannot work with this question (qtype_missingtype_question)
#0 /usr/local/moodle/releases/3.4.5.03-gm/question/engine/lib.php(236): question_behaviour->__construct(Object(question_attempt), 'deferredfeedbac...')
#1 /usr/local/moodle/releases/3.4.5.03-gm/question/engine/questionattempt.php(1465): question_engine::make_behaviour('manualgraded', Object(question_attempt), 'deferredfeedbac...')
#2 /usr/local/moodle/releases/3.4.5.03-gm/question/engine/questionusage.php(941): question_attempt::load_from_records(Object(mysqli_native_moodle_recordset), '28926526', Object(question_engine_unit_of_work), 'deferredfeedbac...')
#3 /usr/local/moodle/releases/3.4.5.03-gm/question/engine/datalib.php(469): question_usage_by_activity::load_from_records(Object(mysqli_native_moodle_recordset), '2412262')
#4 /usr/local/moodle/releases/3.4.5.03-gm/question/engine/lib.php(84): question_engine_data_mapper->load_questions_usage_by_activity('2412262')
#5 /usr/local/moodle/releases/3.4.5.03-gm/mod/quiz/attemptlib.php(567): question_engine::load_questions_usage_by_activity('2412262')
#6 /usr/local/moodle/releases/3.4.5.03-gm/mod/quiz/cronlib.php(78): quiz_attempt->__construct(Object(stdClass), Object(stdClass), Object(stdClass), Object(stdClass))
#7 /usr/local/moodle/releases/3.4.5.03-gm/mod/quiz/lib.php(596): mod_quiz_overdue_attempt_updater->update_overdue_attempts(1539289682, 1539289622)
#8 /usr/local/moodle/releases/3.4.5.03-gm/lib/classes/task/legacy_plugin_cron_task.php(93): quiz_cron()
#9 /usr/local/moodle/releases/3.4.5.03-gm/lib/cronlib.php(105): core\task\legacy_plugin_cron_task->execute()
#10 /usr/local/moodle/releases/3.4.5.03-gm/lib/cronlib.php(67): cron_run_inner_scheduled_task(Object(core\task\legacy_plugin_cron_task))
#11 /usr/local/moodle/releases/3.4.5.03-gm/admin/cli/cron.php(61): cron_run()
Any clues on how to "fix" this problem? In this documentation it says for "Manual grading": Used for essay questions (irrespective of what the quiz is set to) but you can now choose to have every question in the quiz manually graded, if you wish.
So I am guessing the instructor set a qtype_missingtype_question question to be manually granted, but that is not supported even though the docs says you can set any question to be manually graded.
How can we prevent instructors from setting the "wrong" behavior for qtype_missingtype_question or other non-supported question types? What can I do to resolve this error? The quiz is already in progress.