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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None
    • 3.0.4, 3.1
    • None
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • Hide

      None that I'm aware of.

      Show
      None that I'm aware of.
      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.

      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()
      

            Unassigned Unassigned
            gb2048 Gareth J Barnard
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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