-
Bug
-
Resolution: Fixed
-
Major
-
3.5.2
-
MOODLE_35_STABLE
-
MOODLE_35_STABLE, MOODLE_36_STABLE
-
With Moodle 3.3.4 and 3.5.2 (Demo site)
Creation : Calculated multichoice question with Multi answers allowed
As soon a student choices a wrong answer with a negative note in interative mode (with one or more hints) Moodle crashes
Exception - Argument 1 passed to qtype_multichoice_multi_question::disable_hint_settings_when_too_many_selected() must be an instance of question_hint_with_parts, instance of question_hint given, called in [dirroot]/question/type/multichoice/question.php on line 488
More information about this error
Debug info:
Error code: generalexceptionmessage
Stack trace: * line 474 of /question/type/multichoice/question.php: TypeError thrown
- line 488 of /question/type/multichoice/question.php: call to qtype_multichoice_multi_question->disable_hint_settings_when_too_many_selected()
- line 109 of /question/behaviour/interactive/behaviour.php: call to qtype_multichoice_multi_question->get_hint()
- line 86 of /question/behaviour/interactive/behaviour.php: call to qbehaviour_interactive->get_applicable_hint()
- line 112 of /question/behaviour/behaviourbase.php: call to qbehaviour_interactive->adjust_display_options()
- line 841 of /question/engine/questionattempt.php: call to question_behaviour->render()
- line 449 of /question/engine/questionusage.php: call to question_attempt->render()
- line 1552 of /mod/quiz/attemptlib.php: call to question_usage_by_activity->render_question()
- line 1515 of /mod/quiz/attemptlib.php: call to quiz_attempt->render_question_helper()
- line 491 of /mod/quiz/renderer.php: call to quiz_attempt->render_question()
- line 450 of /mod/quiz/renderer.php: call to mod_quiz_renderer->attempt_form()
- line 134 of /mod/quiz/attempt.php: call to mod_quiz_renderer->attempt_page()
Skip <span id="mod_quiz_navblock_title">Quiz navigation</span>Quiz navigation
Warning: these links will not save your answers. Use the next button at the bottom of the page.
Question 1 This page Question 2 Question 3
Finish attempt ...
Time left
- is duplicated by
-
MDL-44267 Coding error in calculated multichoice question type
-
- Closed
-