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

$PAGE->context was not set on Dashboard in Maintenance mode.

    XMLWordPrintable

    Details

    • Testing Instructions:
      1. Select Clean theme.
      2. Turn on developer level debugging.
      3. Enable maintenance mode.
      4. In another browser, login as guest.
      5. Navigate to the '/my/' URL postfix.
    • Workaround:
      Hide

      None that I'm aware of.

      Show
      None that I'm aware of.
    • Affected Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE

      Description

      In maintenance mode login as guest with developer level debugging and navigate to 'http://mymoodlesite/my' you get:

      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 458 of \lib\pagelib.php: call to debugging()
      •line 773 of \lib\pagelib.php: call to moodle_page->magic_get_context()
      •line 1420 of \lib\weblib.php: call to moodle_page->__get()
      •line 1164 of \lib\pagelib.php: call to format_string()
      •line 2893 of \lib\weblib.php: call to moodle_page->set_title()
      •line 2686 of \lib\moodlelib.php: call to print_maintenance_message()
      •line 46 of \my\index.php: call to require_login()
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              gb2048 Gareth J Barnard
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Matteo Scaramuccia, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: