-
Bug
-
Resolution: Fixed
-
Critical
-
2.8 regressions, 2.8.1
-
MOODLE_28_STABLE
-
MOODLE_28_STABLE
-
MDL-48542-master -
Easy
-
-
FRONTEND Sprint 16, Team B Sprint 1, Team Beards Sprint 2
-
Small
Steps to reproduce:
- Go to Site administration ▶ Appearance ▶ Themes ▶ Theme settings
- Append '###' to the Custom User Menu setting
- Press save
Expected result:
- It is used as a divider (e.g. like the custom menu items setting mentioned above it) or is ignored or fails validation
Actual result:
- Boom renders the site completely inaccessible
Coding error detected, it must be fixed by a programmer: PHP catchable fatal error
Debug info: Argument 1 passed to action_menu_link_secondary::__construct() must be an instance of moodle_url, null given, called in [dirroot]/lib/outputrenderers.php on line 3066 and defined
Error code: codingerror
Stack trace:
line 393 of /lib/setuplib.php: coding_exception thrown
line 3535 of /lib/outputcomponents.php: call to default_error_handler()
line 3066 of /lib/outputrenderers.php: call to action_menu_link_secondary->__construct()
line 53 of /theme/clean/layout/columns2.php: call to core_renderer->user_menu()
line 915 of /lib/outputrenderers.php: call to include()
line 845 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 107 of /admin/settings.php: call to core_renderer->header()
- It can only be recovered by manually fixing in the database and purging caches.