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

$PAGE->context accessed before it was known

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Files API, Filters
    • Labels:
      None
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              iverjohnson Iver Johnson
              Tester:
              Nobody
              Participants:
              Component watchers:
              Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10