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

Quiz statistics fail sometimes when set to "First Try"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.8
    • Fix Version/s: 2.8.7, 2.9.1
    • Component/s: Quiz
    • Labels:
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      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.

        Attachments

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

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                6/Jul/15