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

quiz question analysis leads to fatal error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.6.4, 2.7.1
    • 2.6.3
    • Questions
    • MOODLE_26_STABLE
    • MOODLE_26_STABLE, MOODLE_27_STABLE
    • 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.)

      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.

            timhunt Tim Hunt
            tauyeung Tak Auyeung
            Jamie Pratt Jamie Pratt
            Sam Hemelryk Sam Hemelryk
            Andrew Davis Andrew Davis
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.