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

Regression: undefined function in quiz - print_messages();

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.2, 2.2
    • 2.1.3
    • Quiz
    • MOODLE_21_STABLE, MOODLE_22_STABLE
    • MOODLE_21_STABLE
    • Hide

      You really need to be logged in to Moodle with two separate web browsers to test this. Be Teacher in one, and Student in the other.

      1. As teacher, create a quiz as a teacher, with no access restrictions (yet).

      2. As student, start an attempt and go to the summary page.

      3. Now, as teacher, change the settings to restrict things. For example add an IP address restriction, or a close date in the past (or both).

      4. As a student, click reload on the summary page. Verify that you see an error message that explains the problem (not a fatal error about an undefined function.)

      5. As student, click continue, you should get to the view.php page.

      6. As teacher, turn off the access restrictions again, and delete the student's attempt.

      7. As student, click reload. The Start attempt button should re-appear.

      8. As teacher, turn the access restrictions back on.

      9. As student, click the Start attempt button. You should get an error message explaining that you cannot start the attempt now.

      Show
      You really need to be logged in to Moodle with two separate web browsers to test this. Be Teacher in one, and Student in the other. 1. As teacher, create a quiz as a teacher, with no access restrictions (yet). 2. As student, start an attempt and go to the summary page. 3. Now, as teacher, change the settings to restrict things. For example add an IP address restriction, or a close date in the past (or both). 4. As a student, click reload on the summary page. Verify that you see an error message that explains the problem (not a fatal error about an undefined function.) 5. As student, click continue, you should get to the view.php page. 6. As teacher, turn off the access restrictions again, and delete the student's attempt. 7. As student, click reload. The Start attempt button should re-appear. 8. As teacher, turn the access restrictions back on. 9. As student, click the Start attempt button. You should get an error message explaining that you cannot start the attempt now.

    Description

      in startattempt.php and summary.php
      $output->print_messages($messages));
      can't find print_messages anywhere in latest 21stable or master code - was it removed at some point?

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              danmarsden Dan Marsden
              Dan Marsden Dan Marsden
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Adrian Greeve Adrian Greeve
              Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                28/Nov/11