-
Bug
-
Resolution: Fixed
-
Major
-
3.1
-
MOODLE_31_STABLE
-
MOODLE_30_STABLE, MOODLE_31_STABLE
-
mdl55456-master
-
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.