This thread is resolved. Here is a description of the problem and solution.
Problem:
The client found that the WPML plugin version 4.6.8 uses the
str_contains()
function, which is only available in PHP 8, and is concerned about compatibility with older PHP versions.
Solution:
1. We confirmed that WPML no longer supports PHP 5.6. For more information, please see the minimum requirements at WPML Minimum Requirements.
2. We also referred to the WordPress minimum requirements, which can be found at WordPress Requirements.
3. We have an open ticket to double-check compatibility and have tested WPML 4.6.8 with PHP 7.4.1 without issues. We recommend trying it out and reporting any discrepancies.
4. We confirmed that WordPress defines the
str_contains()
function in its core for compatibility with older PHP versions, as seen here: WordPress compat.php.
5. If using WordPress versions older than 5.9 with PHP versions older than 8, the client may need to define the function manually to avoid errors.
If this solution doesn't look relevant, please open a new support ticket in the WPML support forum.
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 6 replies, has 2 voices.
Last updated by 1 year, 7 months ago.
Assisted by: Andrey.