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

"$PAGE->context accessed before it was known" on /enrol/index.php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: General
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      full error message below. Encountered when I logged in for the first time as a manually created student.

      Coding error detected, it must be fixed by a programmer: $PAGE->context accessed before it was known.

      More information about this error

      Stack trace:
      line 335 of /lib/pagelib.php: coding_exception thrown
      line 590 of /lib/pagelib.php: call to moodle_page->magic_get_context()
      line 1216 of /lib/weblib.php: call to moodle_page->__get()
      line 833 of /lib/pagelib.php: call to format_string()
      line 78 of /enrol/index.php: call to moodle_page->set_title()

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              samhemelryk Sam Hemelryk
              Reporter:
              andyjdavis Andrew Davis
              Tester:
              Nobody
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

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