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.
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?
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.
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.
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.
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.
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
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.