[Resolved] PHP Deprecated Warnings when using PHP 8.2
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing PHP deprecated warnings in their debug.log file when using WPML with String Translations and Yoast SEO plugins, even with WP_DEBUG and WP_DEBUG_LOG enabled.
Solution: We have acknowledged the issue and have escalated it internally. While we work on a permanent fix, we have provided a custom Google search URL to help the client find existing support tickets related to the same issue:
Some clients have resolved similar issues by upgrading their server specifications or changing the PHP version. We recommend trying these steps and checking the existing tickets for potential solutions.
If the provided solution is not relevant due to being outdated or not applicable to your case, we suggest opening a new support ticket. We also highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please contact us on the WPML support forum.
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.
Steps to reproduce:
1) We are using WPML with String Translations installed (and also we have Yoast SEO) installed
2) We have WP_DEBUG and WP_DEBUG_LOG set to true in the wp-config.php file
When running the site, the log file contains the following warnings:
PHP Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in (redacted)/wp-content/plugins/wpml-string-translation/classes/MO/Generate/MultiSite/Condition.php on line 22
PHP Deprecated: Creation of dynamic property Whip_RequirementsChecker::$configuration is deprecated in (redacted)/wp-content/plugins/sitepress-multilingual-cms/vendor/yoast/whip/src/Whip_RequirementsChecker.php on line 37
PHP Deprecated: Creation of dynamic property Whip_RequirementsChecker::$messageManager is deprecated in (redacted)/wp-content/plugins/sitepress-multilingual-cms/vendor/yoast/whip/src/Whip_RequirementsChecker.php on line 38
It would be great if you could fix them in an upcoming release.
We have tested with the newest plugin versions on a test site, and they do not resolve the problems.
I will be looking into this and try to find out if we also have any other current reports on these exact same errors and properly escalate them.
In the meantime, I also created a custom search URL for you so that you can quickly find the existing support tickets that are based on the same topics and that already contain recommendations shared by my colleagues: hidden link
This way, you might also find a solution faster.
I hope that you will find helpful information from my colleague's recommendations.
Some of the customers mentioned that they resolved the issue by upgrading their server specs, some of them solved this by changing the PHP version, please let me know how things go and if you find anything valuable in our existing tickets.
Thank you for passing the issues on to the developers.
And thank you for the resources. But they are not really relevant to me 🙂 We are not looking for workarounds and we can easily live with the "noise" that this creates in our debug.log file.
But we do hope that your team will get it prioritized at some point.
I have been informed by my colleagues that these deprecated warnings should now show up anymore in this case.
Just wanted to let you know.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.