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

Quiz statistics fail sometimes when set to "First Try"

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.7.8
    • 2.8.7, 2.9.1
    • 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.

    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

            timhunt Tim Hunt
            worfds91 Joshua Bragg
            Gareth J Barnard Gareth J Barnard
            Dan Poltawski Dan Poltawski
            Mark Nelson Mark Nelson
            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:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              6/Jul/15