Skip Navigation

[Resolved] Memory Exhausted Error

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

Problem: I am seeing sporadic Fatal Errors when working on my site. The error message says that the allowed memory has been exhausted:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /path/to/site/wp-content/plugins/toolset-blocks/vendor/toolset/toolset-common/templates/admin/user-editors/unsaved-content-template-dialog.phtml on line 1

Solution:
The error indicates only 126M of RAM is allowed for WordPress/PHP. This is the minimum amount recommended for running Toolset, but if you run any additional plugins that may not be sufficient. You can try updating your wp-config.php file to increase the amount of available memory to 256M:

define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Sometimes the limit is imposed by your host company, and you may need to get them involved to increase the memory for WordPress and PHP.

This support ticket is created 3 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by filipeC 3 years, 10 months ago.

Assisted by: Christian Cox.

Author
Posts
#1646721

I am randomly getting critical error messages as I try to do things on our website. The following PHP error is generating: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /csdl/projects/nadl/newsite/wp-content/plugins/toolset-blocks/vendor/toolset/toolset-common/templates/admin/user-editors/unsaved-content-template-dialog.phtml on line 1

#1646887

It looks like your site allows only 126M RAM for WordPress/PHP. You can try updating your wp-config.php file to increase those limits, or you may need your host company to increase your limits to 256M if the wp-config.php change does not work. You can try this in wp-config.php:

define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Note that if these lines already exist, you must update the values instead of duplicating the lines.

#1647971

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.