All fixes

Broken after a change

How to Fix the WordPress Memory Exhausted Error

'Allowed memory size exhausted' means WordPress needed more memory than your host allows, often because of a heavy plugin. Your content is safe.

What it means

PHP has a memory ceiling - when WordPress (plus plugins) tries to use more than that, it crashes with this fatal error. It's like running out of RAM on your computer, but for the website.

Why it happens

The usual cause is a plugin doing something memory-hungry - importing large files, processing images, running out-of-control queries, or a memory leak. Sometimes it's just a site that outgrew its hosting plan.

What to do

  1. Check the error - it tells you which file was running when memory ran out.
  2. Increase PHP memory_limit in wp-config.php (add define('WP_MEMORY_LIMIT', '256M');) or php.ini.
  3. Identify the memory hog - the error usually names the plugin or file.
  4. Disable heavy plugins you don't need, especially page builders and import tools.
  5. If it keeps happening, your site may need more resources - consider upgrading hosting.

Still stuck? Memory errors are fixable - we identify the culprit plugin and either optimize it or adjust limits.

Get emergency help
Browse Hacked & security fixes