Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4.1.3 "str_contains" function issue with PHP versions under 8.0 #277

Open
lrskinner opened this issue Apr 22, 2024 · 0 comments
Open

v4.1.3 "str_contains" function issue with PHP versions under 8.0 #277

lrskinner opened this issue Apr 22, 2024 · 0 comments

Comments

@lrskinner
Copy link

Hi Team,

An error is occurring with the "str_contains" function (classes/output/core_renderer.php line 166) in one of our Moodle sites running on PHP 7.4 with the latest snap theme version 4.1.3.

Snap v4.1.3 is for Moodle 4.1 and that version of Moodle requires minimum PHP 7.4.0.

The "str_contains" function wasn't introduced until PHP 8.0 so this function should be breaking sites on anything under PHP 8.0 using the latest snap version.

Screenshot of the browser error:
snap_issue

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant