Skip Navigation

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

Problem:
The client is encountering numerous PHP Deprecated errors related to the WPML plugin when debug mode is enabled on their site.
Solution:
We recommend checking the PHP version of the client's website and comparing it with the WPML plugin requirements. The errors are due to some PHP functions used by WPML not being updated to match the website's PHP version. These warnings do not affect the website's functionality and can be safely ignored. If the client prefers, they can downgrade their PHP version to 7 to avoid these warnings, but this is not necessary for the website or WPML's operation.

If this solution does not apply or is outdated, or if the client is still experiencing issues, we advise opening a new support ticket. We also highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that the latest versions of themes and plugins are installed.

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 1 reply, has 2 voices.

Last updated by Lucas Vidal de Andrade 1 year ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
April 14, 2024 at 7:30 pm #15516707

luisT-15

I enabled debug in my site and got thousands of errors related to your plugin:

[14-Apr-2024 19:18:09 UTC] PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home/myusername/public_html/wp-content/plugins/sitepress-multilingual-cms/lib/mobile-detect.php on line 562

April 15, 2024 at 6:14 pm #15521548

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Those errors indicate that some of the PHP functions used by WPML are not in the latest version, comparing to your website's PHP version. They do not impact the functioning of your website, they are just warnings.

You can either downgrade you PHP to 7 or just leave it as it is, as I said, it won't affect the functioning of your website or of WPML. These warnings can be ignored.

Let me know if you have any further questions