-
Bug
-
Resolution: Fixed
-
Major
-
2.4.4, 2.4.7, 2.5, 2.5.3
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
-
wip-
MDL-40191-master -
To reproduce (as Admin, Manager or Teacher)
1. Create a page resource and put some stuff in it (anything)
2. Set 'visible' to 'Hide'
3. Save and display the resource
4. In the Administration block, select 'Switch role to...' and pick 'Student' (or any role that should not see this resource)
Result is 'Coding error detected, it must be fixed by programmer' error. With debugging on trace is:
Debug info: Argument 3 passed to global_navigation::load_activity()
|
must be an instance of navigation_node, boolean given, called in
|
[dirroot]/lib/navigationlib.php on line 1204 and defined
|
Error code: codingerror
|
Stack trace:
|
|
line 406 of /lib/setuplib.php: coding_exception thrown
|
line 2018 of /lib/navigationlib.php: call to default_error_handler()
|
line 1204 of /lib/navigationlib.php: call to global_navigation->load_activity()
|
line 2936 of /lib/navigationlib.php: call to global_navigation->initialise()
|
line 766 of /lib/pagelib.php: call to navbar->has_items()
|
line 32 of /theme/wset25/layout/general.php: call to moodle_page->has_navbar()
|
line 847 of /lib/outputrenderers.php: call to include()
|
line 777 of /lib/outputrenderers.php: call to
|
core_renderer->render_page_layout()
|
line ? of unknownfile: call to core_renderer->header()
|
line 1479 of /lib/setuplib.php: call to call_user_func_array()
|
line 79 of /mod/page/view.php: call to bootstrap_renderer->__call()
|
line 79 of /mod/page/view.php: call to bootstrap_renderer->header()
|
- Discovered while testing
-
MDL-43217 Teacher unable view some hidden activities by switching role to student
- Closed
- has been marked as being related by
-
MDLSITE-2455 Fatal error from google analytics
- Closed
- is duplicated by
-
MDL-40329 Coding error detected, it must be fixed by a programmer: PHP catchable fatal error
- Closed