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.

This topic contains 4 replies, has 3 voices.

Last updated by Andrey 1 year, 8 months ago.

Assisted by: Andrey.

Author Posts
September 21, 2023 at 3:28 pm #14440837

jhanten

My website keeps going down and New Relic is showing WPML as the biggest user of resources. The log also shows the following every couple of hours.

PHP Fatal error: Uncaught Error: Call to a member function get_requested_lang() on null in /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:1131

I searched the support and found mention of a issue with Query Monitor, but that is not running on my site.
I also updated the config file to provide 512m as max memory.

I basically did all the troubleshooting steps mentioned here: https://wpml.org/forums/topic/php-fatal-error-uncaught-error-call-to-a-member-function-get_requested_lang-4/

My hosting is basically saying don't use your plugin anymore, but I suspect we can fix this. The site is literally going down every hour or less so help would be greatly appreciated. Even trying to get the debug information and the site has gone down again.

Additionally, we did just move hosting so if that can cause any issues that could be checked I thought I would mention it.

September 21, 2023 at 4:00 pm #14441029

jhanten

I put the site into maintenance mode and restarted your plugin. So if you give me a hidden box I can probably get to the debug support info now.

September 22, 2023 at 2:39 pm #14447557

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Welcome to the WPML support forum. We will do our best to help you to resolve the issue.

To help you faster, I've enabled debug information for this support ticket. Please see this link for how to get this information from your site and give it to us: http://wpml.org/faq/provide-debug-information-faster-support/

--
Thanks!

Bigul

September 22, 2023 at 2:46 pm #14447579

jhanten

WPML is still using lots of resources (more than expected). I have literally disabled as many other plugins as I can afford to try and keep my site running.

September 25, 2023 at 9:20 am #14456201

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

You must update WPML to the latest version 4.6.6, and add-ons to benefit from the latest bug fixes and improvements. It should fix this problem.

You can check the latest released versions under "My Account -> Downloads" on this site. Instructions to update can be found here: http://wpml.org/faq/install-wpml/

Please remember to back up your database before you proceed!

September 26, 2023 at 1:43 pm #14467375

jhanten

4.6.6 does appear to have helped with this issue. I will continue to monitor to make sure after I reactivate the other plugins I had to disable. I wish the update had show up automagically instead having to do it manually, but maybe I just hadn't gotten to the rollout list yet.

Additionally, the how your issue was resolved? radio buttons don't work on this form.