Single choise set not working with version 1.27.2 (2024120900) for moodle

Hello, 
I updated the H5P plugin (for moodle) version 1.27.2 (2024120900) and the contents of single choise set won't work.
the moodle version is 3.8.6 + (build: 20210108)
In every content I had with single choise set stop working and the folowing error appears:

Excepción - Call to undefined function str_contains()

Información de depuración:
Error code: generalexceptionmessage

 

×Trazado de la pila (stack):
  • line 5052 of /mod/hvp/library/h5p.classes.php: Error thrown
  • line 4987 of /mod/hvp/library/h5p.classes.php: call to H5PContentValidator->_filter_xss_attributes()
  • line ? of unknownfile: call to H5PContentValidator->_filter_xss_split()
  • line 4919 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 4717 of /mod/hvp/library/h5p.classes.php: call to H5PContentValidator->validateText()
  • line 4550 of /mod/hvp/library/h5p.classes.php: call to H5PContentValidator->validateGroup()
  • line 4717 of /mod/hvp/library/h5p.classes.php: call to H5PContentValidator->validateList()
  • line 4809 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()

This issue happens in every browser, desktop and mobile 

 I hope you can help me to fix this problem.. 

thank you

otacke's picture

Your server is running an outdated version of PHP which is not maintained anymore and a potential security risk.

You should update your server to PHP 8 (not just for the sake of H5P).

Cmp. e. g. https://h5p.org/comment/53224#comment-53224