Home›Support›English Support›[Resolved] fatal error due to Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes)
[Resolved] fatal error due to Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes)
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.
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?
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?
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.
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?
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.
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.