WordPress FAQ

Fixing WordPress Memory Limit Exhausted Errors

The consensus is to identify the specific plugin or script causing the memory leak rather than simply increasing the PHP memory limit indefinitely. medium confidence based on 8 community reports

The consensus is to identify the specific plugin or script causing the memory leak rather than simply increasing the PHP memory limit indefinitely.

Based on 8 community reports.

Linked sources: 9.

Known Issues

Community Q&A

How do I increase the WordPress memory limit?

You can increase the limit by adding define(‘WP_MEMORY_LIMIT’, ‘256M’); to your wp-config.php file or by updating the memory_limit value in your php.ini file.

Why does my site still show memory exhausted errors after increasing the limit?

If the error persists, a plugin or theme may have a memory leak that consumes all available resources, or your hosting provider may have a hard cap on memory usage.

How can I find which plugin is causing memory exhaustion?

Disable all plugins and re-enable them one by one while monitoring your site’s performance to identify which specific plugin triggers the memory error.

Reddit Sources