invalid external parameter : expecting "url"

invalid external parameter : expecting "url"

από Lionel L -
Αριθμός απαντήσεων: 3
Hi there!

I'm on a fresh install of Moodle v4.4dev on an Amazon Linux 2 EC2 instance and I'm experiencing an invalid parameter error everytime I access a course with the following log value :

pageurl => Valeur incorrecte de paramètre détectée (Invalid external api parameter: the value is "http://my_moodle.url/my/courses.php", the server was expecting "url" type): Invalid external api parameter: the value is "http://my_moodle.url/my/courses.php", the server was expecting "url" type
Error code: invalidparameter
* line 362 of /lib/external/classes/external_api.php: invalid_parameter_exception thrown
* line ? of unknownfile: call to core_external\external_api::validate_parameters()
* line 228 of /lib/external/classes/external_api.php: call to call_user_func()
* line 83 of /lib/ajax/service.php: call to core_external\external_api::call_external_function()
I also have an "Invalid return value detected" when I want to add an activity but I cant get detailed information on this pop-up message...

I've no extra plugin installed.

Do you have an idea for resolving this issue?

Μέσος όρος βαθμολογίας: -
Σε απάντηση σε Lionel L

Re: invalid external parameter : expecting "url"

από Leon Stringer -
Φωτογραφία Core developers Φωτογραφία Particularly helpful Moodlers

4.4dev is the unstable development branch of Moodle due for release in April 2024. It's expected to have errors. Hopefully you don't have this on a production site.

People in this forum are unlikely to be using unstable versions. If you still want to work with 4.4dev the Moodle Dev chat room might be the best place to ask questions.

The latest supported version is Moodle 4.3 so you should instead install this for a stable Moodle environment.

Σε απάντηση σε Lionel L

Re: invalid external parameter : expecting "url"

από Paul Holden -
Φωτογραφία Core developers Φωτογραφία Moodle HQ Φωτογραφία Moodle Workplace team Φωτογραφία Particularly helpful Moodlers Φωτογραφία Peer reviewers Φωτογραφία Plugin developers Φωτογραφία Testers
Hi Lionel,

At a guess (because you've obfuscated the actual URL), does your hostname contain an underscore character? See this issue and the linked issues in the comments for more