In my site icc.euridea.eu, running Moodle 3.8.2 (Build: 20200309), I set up several courses that are accessible to guest users without logging in (Guest access in enrollment methods is turned on).
Accessing any of these courses as guest, I get a dialog with title "invalidparameter" and content "Invalid parameter value detected".
Afterward, I get this message whatever page I navigate to. Logging in as any other kind of user everything works fine.
Turning on debugginmg I get this:
Invalid parameter value detected
Missing required key in single structure: year
Error code: invalidparameter
* line 332 of /lib/externallib.php: invalid_parameter_exception thrown
* line 223 of /lib/externallib.php: call to external_api::validate_parameters()
* line 79 of /lib/ajax/service.php: call to external_api::call_external_function()
Reproducing the error should be easy: just navigate to icc.euridea.eu, Select "Best paractices" on the menu bar, then "Portugal", then "Erasmus+ Events". Go to the bottom of the page and click on "More information and resources on Ana Lugojana." This way you will access a single-resource course containing only a folder. The error message should be displayed.
The message is harmless but really annoying. What should I do?