Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.1
-
Component/s: Course
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_31_STABLE
-
Fixed Branches:MOODLE_30_STABLE, MOODLE_31_STABLE
-
Pull from Repository:
-
Pull Master Branch:mdl55456-master
-
Pull Master Diff URL:
Description
I'm getting a weird error when I try to add a role to a category permission capability.
If you go to a course, create a category and then permissions, try to add teacher role to one of the capabilities and I got the following error:
Coding error detected, it must be fixed by a programmer: $PAGE->context was not set. You may have forgotten to call require_login() or $PAGE->set_context()
|
|
* line 453 of /lib/pagelib.php: coding_exception thrown
|
* line 1531 of /lib/pagelib.php: call to moodle_page->magic_get_context()
|
* line 1822 of /lib/setuplib.php: call to moodle_page->initialise_theme_and_output()
|
* line 39 of /admin/roles/ajax.php: call to bootstrap_renderer->__call()
|
The error is displayed inside the Allow role pop up buttons, see screenshot.