Posts made by Visvanath Ratnaweera

Picture of Particularly helpful Moodlers Picture of Translators
 
Oh, yeah. I disabled the “Download available H5P content types from h5p.org” scheduled task - but only yesterday.
sad
 
Now it has happened, how do I solve the problem? Is it possible to replace the current "Interactive content" library on my site with an older version, for example?
Picture of Particularly helpful Moodlers Picture of Translators

hvp content that have been there for years suddenly starts throwing "Exception - Call to undefined function str_contains()"

Full debug trace attached below. The "More information.." link is generic https://docs.moodle.org/401/en/error/moodle/generalexceptionmessage.

Yes, it is Moodle 4.1 LTS, Moodle4.1.14 (Build: 20241007) to be specific. mod_hvp is 1.27.0 2024091200. The H5P content type is "Interactive content".

It is possible that the upgrade to 4.1.13 or 14 has introduced this. We have the staging instance running in the same machine on 4.1.12+. It doesn't cause this error.

Can anybody shine a light on this?

OR is it this "version bump"?

Average of ratings: -
Picture of Particularly helpful Moodlers Picture of Translators
Hi Iñaki

Thanks for checking the details so quickly. Too late to check whether purging the (server-side) cache would have helped. I would have done it, if I had shell access. That is a separate story. As already said, I moved the multilang2 directory away and the site recovered. Now there is no urgency since the other languages were just for creating content, not delivery. I'm busy with a different upgrade problem on a different site, this one urgent ([hvp] Content throws "Exception - Call to undefined function str_contains()" for the curious ;) ).