Skip Navigation

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.

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Mihai Apetrei 9 months, 2 weeks ago.

Assisted by: Mihai Apetrei.

Author Posts
April 22, 2024 at 7:27 am #15548332

thomasK-16

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.

Thanks in advance.

April 22, 2024 at 10:53 pm #15553170

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

Thank you for sharing this valuable information.

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.

Mihai Apetrei

April 23, 2024 at 7:50 am #15554098

thomasK-16

Hi

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.

Have a great day.

April 23, 2024 at 1:47 pm #15556345

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

I totally understand. Thank you for the update and, once again, for letting us know about these ones.

I already opened an internal ticket and shared them with my colleagues. So this ticket can be marked as resolved for now.

In case I will need any extra information from my colleagues, I will get back to you in this ticket and you will be notified via email.

Have a lovely rest of the day!

August 23, 2024 at 1:24 pm #16098663

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

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.