Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is encountering a large volume of PHP deprecation logs from Sitepress Multilingual CMS and WPML String Translation due to running on PHP 8.5. These include issues with

ReflectionProperty::setAccessible()

, using null as an array offset, and

xml_parser_free()

. Although these do not disrupt site functionality, they clutter the debug logs.
Solution:
We are aware of these PHP deprecation notices and are actively updating our codebase for PHP 8.4 and 8.5 compatibility. These specific issues are being addressed in upcoming maintenance releases. Meanwhile, to prevent these warnings from cluttering your server logs, you can modify your

wp-config.php

file by adding:

@ini_set('error_reporting', E_ALL & ~E_DEPRECATED & ~E_STRICT ^ E_NOTICE);

This change should help filter out deprecation warnings until the updates are rolled out. If this solution does not apply to your case, or if it seems outdated, we recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket at WPML support forum for further assistance.

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 1 voice.

Last updated by Carlos Rojas 3 months ago.

Assisted by: Carlos Rojas.

Author Posts
June 4, 2026 at 8:57 am #18080764

mirteM

I am seeing a large volume of PHP deprecation logs generated by the latest versions of Sitepress Multilingual CMS and WPML String Translation running on our environment.

Here is a summary of the specific lines and methods throwing the PHP Deprecated notices:

ReflectionProperty::setAccessible() is deprecated since 8.5

File: .../wp-content/plugins/wpml-string-translation/classes/MO/LoadedMODictionary.php on line 43

Using null as an array offset is deprecated

File: .../wp-content/plugins/sitepress-multilingual-cms/classes/request-handling/class-wpml-language-resolution.php on lines 79 and 87

Function xml_parser_free() is deprecated since 8.5

File: .../wp-content/plugins/sitepress-multilingual-cms/classes/xml-config/transform/class-wpml-xml2array.php on line 18

While these aren't breaking the site, they are heavily cluttering the debug logs. Could these compatibility fixes be included in the upcoming maintenance release?

June 4, 2026 at 9:03 am #18080772

mirteM

I am trying to make your bot open a ticket or to send this to your roadmap but it won't allow me to.

June 4, 2026 at 10:20 am #18081075

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hello,
My name is Carlos, and I'll be taking over this ticket moving forward.

Regarding the messages you're seeing, these are warning notices and are not expected to affect WPML's functionality on your site.

The warnings are appearing because your site is running PHP 8.5.6, which is a very recent PHP version. As PHP evolves, it introduces changes and deprecations that plugin and theme developers—including WPML and WordPress core contributors—need to accommodate in their code. During this transition period, warning messages like these can sometimes appear even though the affected functionality continues to work correctly.

Our development team is already aware of these notices and is actively working on ensuring full compatibility with the latest PHP releases in upcoming updates.

For now, there is no indication that these warnings are causing the issue you reported or affecting the operation of WPML on your website.

Please let me know if you notice any specific functionality not working as expected, and I'll be happy to investigate further.

Best regards,
Carlos

June 4, 2026 at 10:35 am #18081109

mirteM

Hi Carlos,

As long as it is on the roadmap it is fine for me.
Wordpress 7 does notify users that it is fully compatible with PHP 8.5 and on your homepage you do point out you stay ahead of updates.
But as long as it gets fixed I am happy.

Kind regards

June 4, 2026 at 11:54 am #18081443

Carlos Rojas
Supporter

Hi,
Thank you for your understanding.

I completely understand your point. Since WordPress is actively working toward compatibility with newer PHP versions, it's reasonable to expect plugins to follow suit. WPML's goal is indeed to stay compatible with the latest WordPress and PHP releases, and our developers continuously update the codebase to address new PHP changes and deprecations as they are introduced.

I'm glad to confirm that this is already known to the development team and is being tracked for future improvements. While I can't provide a specific timeline for the fix, these compatibility adjustments are part of our ongoing maintenance efforts.

In the meantime, since these are warning notices only and do not affect WPML's functionality, your site can continue operating normally.

Thank you again for bringing this to our attention and for your patience while our team works on full compatibility with the latest PHP versions.

Kind regards,
Carlos