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

$PAGE->context accessed before it was known

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.0
    • 2.0
    • Files API, Filters
    • None
    • MySQL
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

      I have a clean install of the latest Moodle 2.0 Preview 4 (20100802).

      I have created a topics course.

      When I click "Filters" in the Settings Menu I see "Coding error detected, it must be fixed by a programmer: $PAGE->context accessed before it was known." with a stack trace of:

      • line 331 of /lib/pagelib.php: coding_exception thrown
      • line 585 of /lib/pagelib.php: call to moodle_page->magic_get_context()
      • line 1216 of /lib/weblib.php: call to moodle_page->__get()
      • line 3433 of /lib/accesslib.php: call to format_string()
      • line 47 of /filter/manage.php: call to print_context_name()

      When I attempt to do anything with the file manager, and click "Server Files" I get the same error.

      This is also happening at user/managetoken.php with stack trace:

      • line 331 of /lib/pagelib.php: coding_exception thrown
      • line 585 of /lib/pagelib.php: call to moodle_page->magic_get_context()
      • line 1216 of /lib/weblib.php: call to moodle_page->__get()
      • line 828 of /lib/pagelib.php: call to format_string()
      • line 30 of /user/managetoken.php: call to moodle_page->set_title()

      See attached images.

            skodak Petr Skoda
            iverjohnson Iver Johnson (Inactive)
            Nobody Nobody (Inactive)
            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.