Skip Navigation

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

Problem:
The client is experiencing a fatal error reported by "Fatal Error Notify" due to memory exhaustion when switching the website language from French to English on the page /wheelchair-lifts/. The error message indicates that the allowed memory size is exhausted. Clearing the cache temporarily fixes the issue.
Solution:
We recommend disabling the "Fatal Error Notify" plugin and then monitoring the site for errors by checking the

/wp-content/debug.log

file. If the error persists, it might not be related to WPML but could be a false notification from the "Fatal Error Notify" plugin. If the error does not appear in the debug log and cannot be replicated on the staging site with the plugin disabled, the issue might be with the plugin itself sending false notifications.

Please note that this solution might be outdated or not applicable to your specific case. We highly 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 0 reply, has 1 voice.

Last updated by Andreas W. 3 months, 3 weeks ago.

Assisted by: Andreas W..

Author Posts
January 22, 2025 at 5:46 pm #16624623

danielS-149

Background of the issue:
I am trying to switch the website language from French (FR) to English (EN) on the page /wheelchair-lifts/. The issue can be seen at hidden link.

Symptoms:
A fatal error occurs due to memory exhaustion. Error Message: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes). Error Level: E_ERROR. File Path: /nas/content/live/savstairlift/wp-includes/class-wp-term-query.php. Line: 731. The current memory limit is 1GB. Clearing the cache fixes the issue temporarily.

Questions:
How can I resolve the memory exhaustion error when switching languages?
What could be causing excessive taxonomy queries leading to memory issues?

January 22, 2025 at 9:38 pm #16625138

danielS-149

Error Level: E_ERROR
Message: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes)
File: /nas/content/live/savstairlift/wp-includes/class-wp-term-query.php
Line: 731
Request: /wheelchair-lifts/
Referrer: https%3A%2F%2Fsavariastairlift.com%2Ffr%2Fwheelchair-lifts%2F
User ID: 2

and

Error Level: E_ERROR
Message: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 262144 bytes)
File: /nas/content/live/savstairlift/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php
Line: 215
Request: /wheelchair-lifts/
Referrer: https%3A%2F%2Fsavariastairlift.com%2F

Clearing the cache fixed the problem but it will be temporary.

January 23, 2025 at 6:53 pm #16629564

danielS-149

Error Level: E_ERROR
Message: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 262144 bytes)
File: /nas/content/live/savstairlift/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php
Line: 139
Request: /wheelchair-lifts/
Referrer: https%3A%2F%2Fsavariastairlift.com%2Ffr%2Fwheelchair-lifts%2F
User ID: 2

January 25, 2025 at 4:33 pm #16633791

Andreas W.
WPML Supporter since 12/2018

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

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

Hello,

I am currently not seeing any errors on hidden link or on hidden link.

Does this issue occur on the backend while using the WordPress Editor?

Best regards
Andreas

January 27, 2025 at 1:58 pm #16638251

danielS-149

Hello Andreas, I have disabled the object cache, and it looks like the issue has been resolved. What is your take on this? How can I enable the object cache again without encountering any errors?

January 28, 2025 at 8:58 am #16640359

Andreas W.
WPML Supporter since 12/2018

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

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

I would suggest enabling the Object Cache and clearing the cache.

If after that the issue occurs again, we might need to investigate further. I do not see any Object Cache-related plugin on the provided debug information.

Which plugin are you using?

January 28, 2025 at 2:22 pm #16642308

danielS-149

Okay, I enabled it again. Please review when you can.

I am using this object cache: hidden link.

January 28, 2025 at 5:09 pm #16643455

Andreas W.
WPML Supporter since 12/2018

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

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

I understand right that this is an Object Cache integrated into WP and not related to a plugin?

Could you please confirm if clearing the cache solves this issue?

January 28, 2025 at 6:23 pm #16643611

danielS-149

No, this object cache is from WPEngine. Yes, clearing the cache does solve the issue. What do you think the cause of my issue is? How I can resolve it?

January 28, 2025 at 6:54 pm #16643731

Andreas W.
WPML Supporter since 12/2018

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

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

It is hard to say what is causing the issue, especially as this is related to WP Engine's must-use plugins that will work only on WP Engine's servers.

If the issue keeps occurring, please let us know and we will try our best to assist you.

January 28, 2025 at 6:55 pm #16643732

danielS-149

Okay sure thanks. I'll keep the object cache enabled.

January 28, 2025 at 6:57 pm #16643734

Andreas W.
WPML Supporter since 12/2018

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

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

I will keep the ticket open for 14 days so that you can refer back to it in case the issue occurs again.

January 29, 2025 at 7:40 pm #16648429

danielS-149

The same fatal error happened again. We had no errors before using WPML. Please help. Object caching is still enabled.

Error notification
For site hidden link
Error Level: E_ERROR
Message: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes)
File: /nas/content/live/savstairlift/wp-includes/class-wp-term-query.php
Line: 731
Request: /other-products/
Referrer: https%3A%2F%2Fapp.userback.io%2F
User ID: 2

January 29, 2025 at 7:47 pm #16648469

Andreas W.
WPML Supporter since 12/2018

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

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

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

The required fields are below the comment 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 the site and database before granting us access.

If you cannot see the "wp-admin / FTP" fields, your post and site 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" here to create a copy of the site that I can use to investigate the issue further.

However, I would also be very grateful if you could provide a staging site or 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/de/account/websites/.

If you are not able 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

The next time you reply, click on "I still need assistance".

Video:
hidden link

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

January 29, 2025 at 9:33 pm #16648705

Andreas W.
WPML Supporter since 12/2018

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

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

To be able to run tests on this staging site, it would be really useful if you could also provide FTP access, in case the backend will not longer be available.

Would this be possible?

The private reply form is enabled again.