WPML

Overview of the Issue

You will encounter some PHP deprecation messages when running WPML on PHP version 8.2. These messages relate to dynamic property creation in various PHP files within the WPML plugin.

[13-Nov-2023 08:44:04 UTC] PHP Deprecated: Creation of dynamic property Whip_RequirementsChecker::$configuration is deprecated in .../wp-content/plugins/sitepress-multilingual-cms/vendor/yoast/whip/src/Whip_RequirementsChecker.php on line 37

[13-Nov-2023 08:44:04 UTC] PHP Deprecated: Creation of dynamic property Whip_RequirementsChecker::$messageManager is deprecated in .../wp-content/plugins/sitepress-multilingual-cms/vendor/yoast/whip/src/Whip_RequirementsChecker.php on line 38

[13-Nov-2023 08:44:05 UTC] PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in .../wp-content/plugins/sitepress-multilingual-cms/classes/API/REST/class-wpml-ate-proxy.php on line 128

Workaround

This issue is fixed in WPML 4.6.12. Updating solves it on your site, so you only need this workaround if you can’t update yet.

Please, keep in mind that WordPress’s compatibility with PHP versions (reference chart (opens in a new tab)) indicates some known incompatibilities with PHP 8.2.
Thus, consider temporarily using an earlier PHP version if the messages are disruptive.

All known issues

Still Seeing This Issue?

If updating doesn’t fix it, ask a support question and we’ll look into it with you.