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

Regression: undefined function in quiz - print_messages();

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.2, 2.2
    • Fix Version/s: 2.1.3
    • Component/s: Quiz
    • Labels:
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      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

              • Assignee:
                timhunt Tim Hunt
                Reporter:
                danmarsden Dan Marsden
                Peer reviewer:
                Dan Marsden
                Integrator:
                Eloy Lafuente (stronk7)
                Tester:
                Adrian Greeve
                Participants:
                Component watchers:
                Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  28/Nov/11