Receiving a invalidparameter error when viewing course

Receiving a invalidparameter error when viewing course

بواسطة - Steve Fister
عدد الردود: 13

Hello,


I am suddenly seeing a popup error entitled "invalidparameter" with the text "Invalid parameter value detected". I have to click the "close" three times to finally get it to go away.

Here is the stack trace (from: /lib/externallib.php, line 332)

lang => Invalid parameter value detected: Invalid external api parameter: the value is "en_us", the server was expecting "lang" type

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 59 of /lib/ajax/service.php: call to external_api::call_external_function()

* line 31 of /lib/ajax/service-nologin.php: call to require_once()

I'm not using an API, it's just a course with a single topic. The course has one activity which is a link to a video located in AWS CloudFront.

Any ideas??

Thanks!

<steve>

متوسط التقييمات: -
رداً على Steve Fister

Re: Receiving a invalidparameter error when viewing course

بواسطة - Steve Fister

FYI - I solved this issue by installing the en_us language pack. The en language pack was already installed. 

رداً على Steve Fister

إعادة: Re: Receiving a invalidparameter error when viewing course

بواسطة - D.ALI ALAMRI

invalidparameter

Invalid parameter value detected
File: /lib/externallib.php
Line: 315
Stack trace:
Missing required key in single structure: year
Error code: invalidparameter
* line 315 of /lib/externallib.php: invalid_parameter_exception thrown
* line 223 of /lib/externallib.php: call to external_api::validate_parameters()
* line 59 of /lib/ajax/service.php: call to external_api::call_external_function()

رداً على D.ALI ALAMRI

Odp: إعادة: Re: Receiving a invalidparameter error when viewing course

بواسطة - Artur Szczygieł

Hello.

I have exactly the same problem:

Invalid parameter value detected
File: /lib/externallib.php
Line: 332
Stack trace:
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 59 of /lib/ajax/service.php: call to external_api::call_external_function()

It happened after upgrade moodle 3.5 to 3.7.1. I don't know what the rule is when this error appears or not.

Do you have any idea where this error come and how to solve it?

p.s.  Hello, everyone, this is my first post on this forum مبتسم

رداً على Artur Szczygieł

Re: Odp: إعادة: Re: Receiving a invalidparameter error when viewing course

بواسطة - Zabelle Motte
Hello,

Did you find a wey to solve that problem ?
We have excatly the same Moodle version and have the same problem.


Zabelle
رداً على Zabelle Motte

Re: Odp: إعادة: Re: Receiving a invalidparameter error when viewing course

بواسطة - barbara nance
Hi
I am also having exactly the same issue since upgrading to Moodle 3.8.1 . Have also using Adaptable 2.2.2.
رداً على D.ALI ALAMRI

Re: إعادة: Re: Receiving a invalidparameter error when viewing course

بواسطة - zeinab khadem

Please uninstall "block_calendar_month" plugin, to upgrade this plugin.

This solution solved my problem...

رداً على zeinab khadem

Re: إعادة: Re: Receiving a invalidparameter error when viewing course

بواسطة - Ruth Ruane
Hi Zeinab,

I unistalled "block_calendar_month" and yes it did solve my problem. Thank you. But the second part I am having an issue with, "to upgrade this plugin". I cannot find the plugin on Moodle plugins directory to install it again. Calendars are really needed. Do you know where I can find the plugin?
رداً على zeinab khadem

Re: إعادة: Re: Receiving a invalidparameter error when viewing course

بواسطة - Ruth Ruane
Hi I just wanted to say thanks again. I just found the plugin for calendar month block in a fresh download of moodle and found and zipped the plugin and installed it and it worked and the invalid parameter didn't return. I was only getting it when using H5p on the mobile app. So that is a great solution for anyone who is also having this issue.