This thread is resolved. Here is a description of the problem and solution.
Problem:
If you're experiencing a PHP fatal error due to the use of the
str_contains()
function in WPML v4.6.7 on WordPress versions before 5.9, which only supports this function in PHP 8+ and has a compatibility hack for PHP 7+ in later versions.
Solution:
We apologize for the inconvenience this has caused. We have already reported this issue to our development team. In the meantime, we recommend updating your WordPress to version 5.9 or higher to avoid this error. If updating is not an option, please refrain from using WPML v4.6.7 and consider downgrading to an earlier version that does not use the
str_contains()
function.
If this solution doesn't look relevant to your situation, please open a new support ticket with us.
We have resolved the issue with the latest versions of WPML. To fix the problem, kindly update our plugins to their latest versions. If you are still experiencing issues with the latest stable version (4.6.9), try the beta version (4.6.10) from https://wpml.org/download/wpml-multilingual-cms/?section=changelog.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic contains 1 reply, has 2 voices.
Last updated by 1 year, 4 months ago.
Assisted by: Andrey.