-
Bug
-
Resolution: Fixed
-
Minor
-
2.6.6, 2.8.1
-
MOODLE_26_STABLE, MOODLE_28_STABLE
-
MOODLE_27_STABLE, MOODLE_28_STABLE
-
MDL-48430_master -
-
Easy
-
Using a wrong url in custom menu can generate an Exception that cannot be solved without editing database or config file.
This is the traceback of 2.6
Debug info:
|
Error code: invalidurl
|
Stack trace:
|
line 355 of /lib/weblib.php: moodle_exception thrown
|
line 2808 of /lib/outputcomponents.php: call to moodle_url->__construct()
|
line 2743 of /lib/outputcomponents.php: call to custom_menu::convert_text_to_menu_nodes()
|
....
|
This is caused becase parse_url in the construction of moodle_url returns false.