Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- - 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 13 replies, has 0 voices.

Last updated by Andreas W. 17 hours, 37 minutes ago.

Assisted by: Andreas W..

Author Posts
June 26, 2025 at 10:53 am #17172908

ruslanL-4

Background of the issue:
I am experiencing performance degradation on my website hidden link after the latest WooCommerce update. The site becomes significantly slower, especially when accessing orders via the admin panel, which takes 1–2 minutes to load. On the server side, accessing the site triggers the generation of 20–25 processes, loading the CPU up to 100% for 30 to 60 seconds. Query Monitor revealed 679 slow queries, more than 50% related to wpml-string-translation and sitepress-multilingual-cms. A month ago, I reinstalled WPML, which temporarily resolved the issue, but the site has started slowing down again due to a large number of database queries generated by WPML. The DEBUG.LOG shows several PHP Fatal errors related to the function get_requested_lang() on null in sitepress.class.php.

Symptoms:
Performance degradation after WooCommerce update, slow loading of orders in admin panel, high CPU usage, and PHP Fatal errors related to WPML.

Questions:
How can I resolve the issue with the large number of queries generated by WPML?
What steps can I take to prevent the CPU from reaching 100% utilization due to WPML?
How can I fix the PHP Fatal error related to get_requested_lang() in sitepress.class.php?

June 26, 2025 at 10:36 pm #17175345

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

Hello,

I would like to request temporary access (wp-admin and FTP) to the website to investigate the issue further.

You can find the required fields below the comments section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.

IMPORTANT
Please be sure to back up your website and database before granting us access.
If you can't see the "wp-admin / FTP" fields, your post and website credentials will be set to "PUBLIC." DO NOT publish the data unless you see the required wp-admin / FTP fields.

I may need to install a plugin called "All In One WP Migration" to create a copy of the website so I can investigate the issue further.

However, I would also be very grateful if you could provide a staging site or a copy of the website from your server for this purpose.

If you have any questions about creating such a staging site, you can consult your hosting provider. Please note that WPML must also be registered on this staging site at https://wpml.org/account/websites/.

If you are unable to provide such a copy of the website for testing, please let me know on this ticket.

The private reply form looks like this:
hidden link

Click "I still need assistance" the next time you reply.

Video:
hidden link

Please note that we are required to request this information individually on each ticket. We are not permitted to access any credentials that were not specifically submitted on this ticket using the private response form.

Best regards,
Andreas

June 27, 2025 at 6:16 am #17175812

ruslanL-4

Unfortunately, I’m unable to create a copy of the website from my server for this purpose. Please let me know if there's an alternative way I can assist with the investigation.

June 27, 2025 at 6:18 am #17175828

ruslanL-4

At the moment, I’m only able to provide WordPress admin access. Unfortunately, I cannot grant FTP access or create a staging copy of the website.

June 27, 2025 at 6:33 am #17175843

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

No problem 😉

You could provide me with admin access to the live site, and I would install the plugin "All in One WP Migration" in case I need a copy for testing, to test the website locally on a virtual server.

The private reply form is enabled again.

June 27, 2025 at 7:59 am #17176261

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

Would you agree if we try to use the plugin on your site, which should clean out old WPML settings from WordPress's options table?

hidden link

If so, please take a backup of your database and let me know if you need my assistance.

More details about the issue:
https://developer.wordpress.org/advanced-administration/performance/optimization/#autoloaded-options

WordPress suggests that you use an Object Cache plugin to enhance load time:
https://developer.wordpress.org/advanced-administration/performance/optimization/#persistent-object-cache

I would further suggest asking the hosting support if you can update the server to PHP 8.0 or higher, which will enhance the site's performance.

June 27, 2025 at 8:10 am #17176341

ruslanL-4

ok, I agree if you try to use the plugin on your site, which should clean out old WPML settings from WordPress's options table.

June 27, 2025 at 8:23 am #17176430

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

Note that the loading time of your website does not improve significantly if I disable WPML. This issue seems not to be caused by WPML.

I have not run the mentioned script yet, but the performance issue persists even when testing the site without WPML. The only difference is that the load time gets even higher with WPML, as it will serve more queries, but there is already a very high load time even when testing without WPML and this should get solved first.

June 27, 2025 at 8:47 am #17176510

ruslanL-4

You didn’t completely disable the plugin — I can still see SQL queries being generated.
Last time I opened a ticket, I was advised to reinstall the plugin.
After a full reinstallation, the website performed quickly.

This topic contains 1 reply (+ 1 private), has 1 voice.

Last updated by ruslanL-4 3 weeks ago.

Assisted by: Noman.

Noman : I can see the Fatal error which should not be there
Noman : I'd suggest you to please follow the below steps:

1. Take a backup of your site first for safety reasons.

2. Delete the WPML plugins.

3. Download the WPML plugins from WPML.org downloads page: https://wpml.org/account/downloads/

4. Install it on your site by going to Plugins >> Add New plugin page.

June 27, 2025 at 9:45 am #17176852

ruslanL-4

I deactivated and activated some plugins.
In the debug.log, I see the following error:

[27-Jun-2025 09:32:28 UTC] PHP Warning: include(.../public_html/wp-content/languages/plugins/ajax-cart-autoupdate-for-woocommerce-ru_RU.l10n.php): failed to open stream: No such file or directory in ..../public_html/wp-includes/l10n.php on line 1608
[27-Jun-2025 09:32:28 UTC] PHP Warning: include(): Failed opening '/public_html/wp-content/languages/plugins/ajax-cart-autoupdate-for-woocommerce-ru_RU.l10n.php' for inclusion (include_path='.:/opt/alt/php74/usr/share/pear') in /public_html/wp-includes/l10n.php on line 1608
[27-Jun-2025 09:32:52 UTC] Cron reschedule event error for hook: action_scheduler_run_queue, Error code: could_not_set, Error message: Список подій cron не може бути збережений., Data: {"schedule":"every_minute","args":["WP Cron"],"interval":60}

June 27, 2025 at 9:47 am #17176855

ruslanL-4

When can I activate WPML again?
My website is currently not functioning properly without it.

June 27, 2025 at 11:36 am #17177208

ruslanL-4

debug.log:

[27-Jun-2025 11:28:19 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_requested_lang() on null in .../public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:1134
Stack trace:
#0 .../public_html/wp-content/plugins/sitepress-multilingual-cms/classes/utilities/class-wpml-locale.php(106): SitePress->get_current_language()
#1 .../public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(3482): WPML_Locale->locale()
#2 .../public_html/wp-includes/class-wp-hook.php(324): SitePress->locale_filter('uk')
#3 .../home/craftom1/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters('uk', Array)
#4 .../public_html/wp-includes/l10n.php(80): apply_filters('locale', 'uk')
#5 .../public_html/wp-includes/l10n.php(106): get_locale()
#6 .../public_html/wp-includes/l10n.php(153): get_user_locale()
#7 .../public_html/wp-includes/l10n.php(1364): determine_locale()
#8 .../public_html/wp-includes/l10n.php(1409): in .../public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 1134
[27-Jun-2025 11:28:19 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_requested_lang() on null in .../public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:1134
Stack trace:
#0 .../public_html/wp-content/plugins/sitepress-multilingual-cms/classes/utilities/class-wpml-locale.php(106): SitePress->get_current_language()
#1 .../public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(3482): WPML_Locale->locale()
#2 .../public_html/wp-includes/class-wp-hook.php(324): SitePress->locale_filter('uk')
#3 .../public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters('uk', Array)
#4 .../public_html/wp-includes/l10n.php(35): apply_filters('locale', 'uk')
#5 .../public_html/wp-includes/l10n.php(106): get_locale()
#6 .../public_html/wp-includes/l10n.php(153): get_user_locale()
#7 .../public_html/wp-includes/l10n.php(954): determine_locale()
#8 .../public_html/wp-includes/class-wp-fatal-er in /home/craftom1/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 1134

June 27, 2025 at 2:16 pm #17177827

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

I will try to create a local copy of your site for further investigation and then get back to you, but as I said earlier, this site is having performance issues even without WPML, and it can not run any WPML-related queries if WPML is disabled.

If you investigate Query Monitor you will see also many queries that are not WPML-related.

June 28, 2025 at 8:43 am #17179069

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

Hello,

I had unexpected issues with the migration of your website and need to create a new site package. Sadly, I am no longer having admin access to the site.

If you need further assistance, please grant me admin access again and let know on this ticket once the changes have been made.

Best regards
Andreas