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

quiz question analysis leads to fatal error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.3
    • Fix Version/s: 2.6.4, 2.7.1
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      Hide

      MDL-44981 said run the unit tests, but clearly that was not enough.

      I guess:

      1. Make a quiz containing a numerical question.
      2. Attempt it a few times as students.
      3. As teacher go to the statistics report.
      4. Click on the question name, and look at the analysis of reponses. (Really, just make sure there is not a fatal error.)
      Show
      MDL-44981 said run the unit tests, but clearly that was not enough. I guess: Make a quiz containing a numerical question. Attempt it a few times as students. As teacher go to the statistics report. Click on the question name, and look at the analysis of reponses. (Really, just make sure there is not a fatal error.)
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      report.php?id=xxxx&mode=statistics&slot=xxxx triggers a fatal error in PHP. The problem is identified to be in question/classes/statistics/responses/analysis_for_class.php line 110. $actualresponse is of class analysis_for_actual_response, and it cannot be cast to a string. That line should be replaced by the following:

      return $onlyactualresponse->response_matches($this->modelresponse);

      because the method response_matches is already defined in analysis_for_actual_response.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              tauyeung Tak Auyeung
              Peer reviewer:
              Jamie Pratt
              Integrator:
              Sam Hemelryk
              Tester:
              Andrew Davis
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Jul/14