Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-63459

Calculated multichoice question - Answer with negative note in interactive mode

    XMLWordPrintable

Details

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              mylene.potier Mylène POTIER
              Luca Bösch Luca Bösch
              Jake Dallimore Jake Dallimore
              CiBoT CiBoT
              Tim Hunt, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Kevin Percy, Laurent David, Mathew May, Mihail Geshoski, Sabina Abellan, Sara Arjona (@sarjona), Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                5/Dec/18