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

Quiz with a close time causes a Fatal Error on MyMoodle

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3
    • Component/s: Dashboard (My home), Quiz
    • Labels:
      None
    • Environment:
      Apache2, php5, mysql5.5
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      You need a course with quizzes with closing time set but with the closing time not passed, and you need a student user enrolled in that course who has attempted some quizzes.

      Logged in as that student, go to the My Moodle page.

      Show
      You need a course with quizzes with closing time set but with the closing time not passed, and you need a student user enrolled in that course who has attempted some quizzes. Logged in as that student, go to the My Moodle page.
    • Workaround:
      Hide

      Disable the quiz close time, or hide the quiz from view

      Show
      Disable the quiz close time, or hide the quiz from view
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      An open quiz with a closing time set causes the following debug error on an enrolled student's MyMoodle page:

      Fatal error: Class 'quiz_attempt' not found in /var/www/moodle/mod/quiz/lib.php on line 496

      This prevents the page from rendering any blocks, so the student is unable to navigate, and can only log out.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    25/Jun/12