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

Undefined variable: infomessages in mod\quiz\view.php

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.2.2
    • 2.2.1
    • Quiz
    • None
    • Windows 7
    • MySQL
    • MOODLE_22_STABLE
    • MOODLE_22_STABLE
    • Hide

      0. With developer debug mode set.
      1. Log in as guest.
      2. Go to the info page for a quiz and make sure that you see the "Guests can't do quizzes" messages and not notices.
      3. Make a role none of mod/quiz:attempt, mod/quiz:reviewmyattempts or mod/quiz:preview but does have mod/quiz:view. Assign a user that role in a course with quizzes, and visit the quiz.
      4. Verify you see a different message, again with no notices.
      4. Lot in as that user

      Show
      0. With developer debug mode set. 1. Log in as guest. 2. Go to the info page for a quiz and make sure that you see the "Guests can't do quizzes" messages and not notices. 3. Make a role none of mod/quiz:attempt, mod/quiz:reviewmyattempts or mod/quiz:preview but does have mod/quiz:view. Assign a user that role in a course with quizzes, and visit the quiz. 4. Verify you see a different message, again with no notices. 4. Lot in as that user

      I get this notice and warning when a guest user tries to attempt a quiz :
      Notice: Undefined variable: infomessages in ...\mod\quiz\view.php on line 226
      Warning: Invalid argument supplied for foreach() in ...\mod\quiz\renderer.php on line 517

      The rest of the page (quiz description, message for guests and connexion button) display normally.
      Don't know if this bug has consequences.

            timhunt Tim Hunt
            fp2011 f p
            Sam Hemelryk Sam Hemelryk
            Glenn Ansley Glenn Ansley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.