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 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.

This topic contains 2 replies, has 2 voices.

Last updated by filipeC 2 months, 1 week ago.

Assigned support staff: 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

Christian Cox
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

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!