-
Bug
-
Resolution: Fixed
-
Major
-
2.3.2, 3.0.6, 3.1.2
-
MOODLE_23_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE
-
MOODLE_30_STABLE, MOODLE_31_STABLE
-
MDL-36611-master -
When editing an outcome from a course, the following debug output is displayed.
To reproduce:
- Login as admin
- Turn debugging on.
- Enable outcomes
- Create a course
- Under course administration, click Outcomes
- Click the Edit outcomes link
- Click Add a new outcome
- Enter values for Full name, Short name and Scale.
- Tick Standard outcome
- Click Save changes
- Back on the Outcomes page, click on the Edit icon for the created standard outcome.
- Expected:
- No error message displayed.
- Actual:
- The following error is displayed
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 1531 of /lib/pagelib.php: call to moodle_page->magic_get_context()
line 1823 of /lib/setuplib.php: call to moodle_page->initialise_theme_and_output()
line 1482 of /lib/formslib.php: call to bootstrap_renderer->__call()
line 196 of /lib/formslib.php: call to MoodleQuickForm->__construct()
line 121 of /grade/edit/outcome/edit.php: call to moodleform->__construct()
- The following error is displayed
Example URL
http://
/grade/edit/outcome/edit.php?courseid=2&id=1
Will suggest a fix shortly.
- has a non-specific relationship to
-
MDL-25112 some admin pages not setting context properly
- Closed