-
Bug
-
Resolution: Fixed
-
Minor
-
3.10.7, 3.11.3, 3.11.5
-
MOODLE_310_STABLE, MOODLE_311_STABLE
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MDL-72882-master-3 -
-
To reproduce:
- Log in as admin
- Go to Site administration / Language / Language packs
- Install any language pack. Let's use the Japanese language pack (might need to run cron to download the language pack if it's not locally available yet)
- Using the language menu change the language to Japanese
- Now delete the Japanese language pack.
- Go to the Dashboard.
- Expected: No errors will happen. The language will be set to the default language.
- Actual: The following error is shown:
lang => Invalid parameter value detected (Invalid external api parameter: the value is "ja", the server was expecting "lang" type): Invalid external api parameter: the value is "ja", the server was expecting "lang" type
Error code: invalidparameter
* line 366 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()