-
Bug
-
Resolution: Fixed
-
Minor
-
3.11.3, 4.0.4
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MDL-72828-master -
When you open a dashboard page with the myoverview or timeline block on it, you will get a failed request to /lib/ajax/service-nologin.php?info=core_get_string. It returns:
[
|
{
|
"error": true,
|
"exception": {
|
"message": "Invalid parameter value detected",
|
"errorcode": "invalidparameter",
|
"link": "https://sandbox.moodledemo.net/",
|
"moreinfourl": "http://docs.moodle.org/311/en/error/debug/invalidparameter"
|
}
|
}
|
]
|
The request originates from: https://github.com/moodle/moodle/blob/385938b472038a423bf51774f3adfb4dff61d1e6/lib/amd/src/paged_content_paging_bar.js#L430
The request is being made without a stringid which is required for core_get_string. The reason for the missing stringid is that a jQuery object is being passed to Str.get_strings() instead of an array. The map function works differently for those.