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

Quiz statistics fail sometimes when set to "First Try"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.8.7, 2.9.1
    • 2.7.8
    • Quiz
    • MOODLE_27_STABLE
    • MOODLE_28_STABLE, MOODLE_29_STABLE
    • Hide
      1. Create a new quiz set to Question behaviour: Interactive with multiple tries
      2. Add one short-answer question.
      3. As a student attempt the quiz, do not answer the question, but submit the quiz.
      4. As teacher, go to Quiz administration -> Results -> Statistics
      5. Change the setting to say Analyze responses for: First try and click Show report.
      6. Verify that the report displays with no errors.
      7. Click on the short-answer question name, and verify that the the Response analysis shows that one student did not answer.
      Show
      Create a new quiz set to Question behaviour: Interactive with multiple tries Add one short-answer question. As a student attempt the quiz, do not answer the question, but submit the quiz. As teacher, go to Quiz administration -> Results -> Statistics Change the setting to say Analyze responses for: First try and click Show report. Verify that the report displays with no errors. Click on the short-answer question name, and verify that the the Response analysis shows that one student did not answer.

      I have several quizzes where I get the following error message when setting the quiz statistics to calculate based on "first try". It seems to only involve quizzes with Short Answer questions but not all quizzes involving short answer questions seem to do it.

      PHP Fatal error: Call to a member function get_qt_data() on a non-object in /httpdocs/moodle/question/behaviour/behaviourbase.php on line 301, referer: http://www.rjreynolds.org/moodle/mod/quiz/report.php

      I realize this is a security fixes only version but I'm reporting it anyway in case this affects newer versions also. I'll be upgrading at the end of the school year... so no nagging.

        1. attempt 106517.csv
          9 kB
        2. attempt 106518.csv
          49 kB
        3. attempt 106741.csv
          29 kB

            timhunt Tim Hunt
            worfds91 Joshua Bragg
            Gareth J Barnard Gareth J Barnard
            Dan Poltawski Dan Poltawski
            Mark Nelson Mark Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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