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

Maintenance mode require_login() shows debugging

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.5, 2.2.1, 2.3
    • Fix Version/s: 2.1.6, 2.2.3
    • Component/s: Authentication
    • Labels:

      Description

      Coding problem: $PAGE->context was not set. You may have forgotten to call require_login() or $PAGE->set_context(). The page may not display correctly as a result
      
          line 345 of /lib/pagelib.php: call to debugging()
          line 617 of /lib/pagelib.php: call to moodle_page->magic_get_context()
          line 1214 of /lib/weblib.php: call to moodle_page->__get()
          line 920 of /lib/pagelib.php: call to format_string()
          line 2478 of /lib/weblib.php: call to moodle_page->set_title()
          line 2726 of /lib/moodlelib.php: call to print_maintenance_message()
          line 38 of /index.php: call to require_login()
      

      Replication steps:

      1. Enable maintenance mode,
      2. turn debugging on with display errors.
      3. login as student/user that cannot browse site with maint mode on.
      4. Error displays.

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/May/12