Hi all
I am getting Exception - Call to undefined function str_contains()
The more information points to https://docs.moodle.org/401/en/error/moodle/generalexceptionmessage. The full debug trace is:
Debug info:
Error code: generalexceptionmessage×Dismiss this notification
Stack trace:
- line 5042 of /mod/hvp/library/h5p.classes.php: Error thrown
- line 4977 of /mod/hvp/library/h5p.classes.php: call to H5PContentValidator->_filter_xss_attributes()
- line ? of unknownfile: call to H5PContentValidator->_filter_xss_split()
- line 4909 of /mod/hvp/library/h5p.classes.php: call to preg_replace_callback()
- line 4348 of /mod/hvp/library/h5p.classes.php: call to H5PContentValidator->filter_xss()
- line 4707 of /mod/hvp/library/h5p.classes.php: call to H5PContentValidator->validateText()
- line 4799 of /mod/hvp/library/h5p.classes.php: call to H5PContentValidator->validateGroup()
- line 4707 of /mod/hvp/library/h5p.classes.php: call to H5PContentValidator->validateLibrary()
- line 4550 of /mod/hvp/library/h5p.classes.php: call to H5PContentValidator->validateGroup()
- line 4707 of /mod/hvp/library/h5p.classes.php: call to H5PContentValidator->validateList()
- line 4550 of /mod/hvp/library/h5p.classes.php: call to H5PContentValidator->validateGroup()
- line 4707 of /mod/hvp/library/h5p.classes.php: call to H5PContentValidator->validateList()
- line 4707 of /mod/hvp/library/h5p.classes.php: call to H5PContentValidator->validateGroup()
- line 4799 of /mod/hvp/library/h5p.classes.php: call to H5PContentValidator->validateGroup()
- line 2264 of /mod/hvp/library/h5p.classes.php: call to H5PContentValidator->validateLibrary()
- line 102 of /mod/hvp/classes/view_assets.php: call to H5PCore->filterParameters()
- line 71 of /mod/hvp/classes/view_assets.php: call to mod_hvp\view_assets->getfilteredparameters()
- line 44 of /mod/hvp/view.php: call to mod_hvp\view_assets->__construct()
The site is a Moodle 4.1.15 LTS, mod_hvp is 1.27.1 (2024112100), PHP 7.4.
Where should I start debugging? H5P noob here. ;-(
I have a staging upgrade of the site running - Moodle 4.5.1 LTS, mod_hvp is 1.27.1 (2024112100), PHP 8.2. It displays the activity faultlessly.
How can I get H5P in the 4.1.15 LTS working? It is our production site! We need to run it for another couple of months. This is not the only H5P activity failing, literally hundreds more are failing. I think they belong to a subset of activity types, this one is of type Course Presentation. There are a few more.
Now at the end of the calendar year the activity is high and the priority is also high!