Error in Moodle Theme "boost"?

Error in Moodle Theme "boost"?

by Christian Schett -
Number of replies: 8

Hi Community,

since upgrading to Moodle 3.11.0 I always get an error message ("invalid parameter") when I start a Moodle-H5P interaction (the blue one). Now I upgraded to 3.11.1 but the error message still appears:

File: /lib/externallib.php
LINE: 349

Missing required key in single structure: year
Error code: invalidparameter*
*line 349 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()


After searching for a solution I find out that this behaviour comes from the Moodle-Theme "Boost" because when I change the theme for example to "classic" or "moove" the error-message disappears.
Well, nice to know what the problem is but does anyone have an idea how I can fix this because I still wanted to use "Boost" as the main-theme?

thank you in advance

Christian


Average of ratings: -
In reply to Christian Schett

Re: Error in Moodle Theme "boost"?

by Lexy Walker -
Picture of Core developers Picture of Particularly helpful Moodlers
Boost is a core part of Moodle, so it definitely shouldn't be causing issues like that.

There's nothing in that error output that refers to Boost. Are there more lines in that error log that you've cut out?
In reply to Lexy Walker

Re: Error in Moodle Theme "boost"?

by Christian Schett -
Hi Lexy,

thanks for your response. Well, I'm not really sure that the error is related to the Boost-Theme. It's just a guess because it's only happens in the Boost-Theme but not in Classic or Moove. Unfortunately, the debug-mode only shows the error-message from above and not more information about this error.
I found another thread to this error-message but not in context to H5P but with the calendar-block. That was a bug in Moodle but should be solved with a former upgrade.

I'm not a coder so I hoped that anyone with more moodle-background has an idea what this error message could mean and how to solve the "mystery" smile

Best regards
Christian
In reply to Lexy Walker

Re: Error in Moodle Theme "boost"?

by Ewald Dreesmann -
Hi,

I've got the same problem using the Theme Boost. Looking into it with the DEV-Tools (Browser):

_________

Part I:

h5p.js?ver=1635159258:976

Error: Missing content configuration for hotspot. Please fix in editor.
at new ImageHotspots.Hotspot (5cb8862d6e467e9cff7e239075817b2f0af28f60.js:552)
at ImageHotspots.H5P.ImageHotspots.ImageHotspots.attach (5cb8862d6e467e9cff7e239075817b2f0af28f60.js:376)
at Object.H5P.newRunnable (h5p.js?ver=1635159258:954)
at HTMLDivElement. (h5p.js?ver=1635159258:137)
at Function.each (jquery.js?ver=1635159258:2)
at d.fn.init.each (jquery.js?ver=1635159258:2)
at Object.H5P.init (h5p.js?ver=1635159258:93)
at HTMLDocument. (h5p.js?ver=1635159258:2821)
at u (jquery.js?ver=1635159258:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1635159258:2)
H5P.error @ h5p.js?ver=1635159258:976
H5P.ImageHotspots.ImageHotspots.attach @ 5cb8862d6e467e9cff7e239075817b2f0af28f60.js:384
H5P.newRunnable @ h5p.js?ver=1635159258:954
(anonym) @ h5p.js?ver=1635159258:137
each @ jquery.js?ver=1635159258:2
each @ jquery.js?ver=1635159258:2
H5P.init @ h5p.js?ver=1635159258:93
(anonym) @ h5p.js?ver=1635159258:2821
u @ jquery.js?ver=1635159258:2
fireWith @ jquery.js?ver=1635159258:2
ready @ jquery.js?ver=1635159258:2
_ @ jquery.js?ver=1635159258:2
first.js:20 Starting Moodle session timeout warning.
first.js:20 Not starting Moodle session timeout warning in this iframe.


and Part II:

Missing required key in single structure: year
Error code: invalidparameter
* line 349 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()
_____________________

Using the Theme "Classic" there are only the Messages in Part I.

Maybe in the meanwhile there's a fix for this?
Average of ratings: Useful (1)
In reply to Ewald Dreesmann

Re: Error in Moodle Theme "boost"?

by Christian Schett -
"Happy" to see that I'm not the only one with this issue. Hope instantly that this will be fixed in Moodle 4.0. Cross my fingers.
In reply to Christian Schett

Re: Error in Moodle Theme "boost"?

by Ewald Dreesmann -
Hi,

after reading this thread: "Moodle in English: invalidparameter: Invalid parameter value detected" maybe this could help:

1. Open the course with showing the message: "invalid parameter"
2. Turn on editing and delete the block "calendar"
3. Turn editing off and reload the page. The message shouldn't be there anymore ...
4. Reinstall the block "calendar". The message still shouldn't popup

For me, the only problem is now that the block "calendar" disappeared from EVERY course. 😬

But the message is gone ... 😉
Average of ratings: Useful (3)
In reply to Ewald Dreesmann

Re: Error in Moodle Theme "boost"?

by Christian Schett -
Hi Ewald,

thank you so much. Your workaround was the solution. No error-message anymore smile

Best regards
Christian
In reply to Christian Schett

Re: Error in Moodle Theme "boost"?

by Ly Green -
Same error, but in my case I did not have a calendar, I added and removed it, but it did not work for me sad.
In reply to Ly Green

Re: Error in Moodle Theme "boost"?

by Ewald Dreesmann -

Hi,

I also found out the following: 

There seems to be some sort of inheritance problem on my Moodle-Website. I have the block calendar on my site home-page (not dashboard) and I have configured the block to be seen on the entire website. With this configuration the error appears again.

Removing the calendar from the site home-page or configure it not to be seen on the entire website let disappear the error again.

But I wanted the calendar on the entire website so I tried different themes. And now I'm using the theme boost campus with only small differences to the theme boost  but very useful additional features and it works great with the calendar on the site home-page configured to be seen on the entire website - without any errors.

And maybe this will also work with other blocks on the site home-page .

Best regards

Ewald

Average of ratings: Useful (1)