Skip Navigation

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

Problem:
You are experiencing 732 PHP Deprecated errors with the sitepress-multilingual-cms plugin, which slows down the loading speed of WP Admin. Disabling the WPML plugin restores normal loading speed.
Solution:
1. Increase the WP Memory Limit to 256M or higher. For guidance, visit https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/#how-can-i-increase-my-sites-memory-limit
2. Increase the PHP Time Limit to 300 or higher if possible.
3. Switch to PHP 8.2 and check if the deprecated errors persist.
4. A known workaround for this issue is discussed in the WPML forums at https://wpml.org/forums/topic/deprecated-rtrim-passing-null-to-parameter-1-string-php-8-1-2/#post-13670953.
5. A permanent fix is expected in the next major release of WPML, version 4.7.

If this solution does not resolve your issue or 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 the problem persists, please open a new support ticket at 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 6 replies, has 2 voices.

Last updated by Bobby 6 months, 1 week ago.

Assisted by: Bobby.

Author Posts
August 14, 2024 at 12:15 pm #16070387

danielS-93

Background of the issue:
I am experiencing issues with the sitepress-multilingual-cms plugin on my website hidden link. I am trying to resolve 732 PHP Deprecated errors reported by Query Monitor.

Symptoms:
Query monitor keeps reporting 732 PHP Deprecated errors, which slows down the loading speed of WP Admin. Disabling the WPML plugin restores normal loading speed.

Questions:
How can I resolve the PHP Deprecated errors caused by the sitepress-multilingual-cms plugin?
Is there an update or fix available for the WPML plugin to address these deprecated errors?

August 15, 2024 at 6:39 pm #16075832

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

Looking at the debug info, I would recommend the following changes:

Please increase the WP Memory Limit to 256M or higher
https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/#how-can-i-increase-my-sites-memory-limit

I also would advise increasing the PHP Time Limit to 300 or higher if possible as well.

The server is using PHP 8.1.2-1ubuntu2.17 , if possible switch to PHP 8.2 and let me know your results with the deprecated errors, most of the time these type of warnings/errors come from something not being supported in a PHP Version.

August 16, 2024 at 1:13 pm #16078386

danielS-93

I increased the PHP limit to 300 and the Memory limit to 256M, but the Deprecated errors still exist. Unfortunately, there is no update to version 8.2 in my domain.
Why deprecated errors do not disappear? Can you check yourself in Admin what is going wrong?

The WPML plugin keeps giving the following warning: WPML plugin cannot connect to wpml.org. See screenshots.

kind, Daniel

wpml-cannoct-connect.JPG
August 16, 2024 at 6:09 pm #16078975

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi Daniel,

Thank you for updating me! What other options do you currently see for the PHP Version? The deprecated errors are related to the PHP Version.

Regarding the connection issue, please go to WPML->Support->Installer Support->Check now and share with me a screenshot of the page once it is finished checking.

August 19, 2024 at 11:13 am #16083162

danielS-93

Here is a screenshot.

Kind, Daniel

Installer-Support-‹-Elrad-Group-—-WordPress.jpg
August 19, 2024 at 5:27 pm #16084831

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you for the screenshot, it looks like a possible temporary issue, but we might need to further investigate.

Regarding the deprecated errors were you able to review what other PHP versions are available on your server?

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

August 20, 2024 at 9:39 pm #16088404

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you for the access details!

I was able to confirm that the deprecated error you are receiving is known and our team has provided a workaround for it in the following thread:

https://wpml.org/forums/topic/deprecated-rtrim-passing-null-to-parameter-1-string-php-8-1-2/#post-13670953

Additionally, a permanent solution will be released in future versions of WPML, while I cannot confirm an eta it will most likely be added in the next major release of WPML which is 4.7

August 22, 2024 at 7:20 am #16092926

danielS-93

I changed the code and it seems to work now. The system no longer displays deprecated errors. It will probably only work until the next update if it's not 4.7.

Thank you, Daniel