An error was reported in an H5P module in one of our Moodle instances. Copy-pasting from my response -
The error says, undefined function str_contains()
From this page:
https://stackoverflow.com/questions/66519169/call-to-undefined-function-str-contains-php
"str_contains() was introduced in PHP 8 and is not supported in lower versions."
Currently we're running Moodle 4.1 LTS (Long Term Support) which runs on PHP 7.4. We have an upgrade plan to upgrade to Moodle 4.5 LTS in October or so, when we would also upgrade the PHP version as well as the MySQL database version, along with the server Linux kernel version. We're waiting for October so that the LTS version of Moodle as well as the Linux kernel will be out - https://moodledev.io/general/releases .
I've explained the rationale for the upgrade here,
https://hnsws.blogspot.com/2024/04/moodle-upgrade-path-41-to-45.html
After the upgrade, this issue should be sorted.
No comments:
Post a Comment