Memory Limit Exhausted
Your website needs more memory (RAM) than your hosting currently allows. This usually happens when a plugin is resource-heavy or too many plugins are running at once.
Why this happens
PHP allocates a fixed amount of memory for each page load, controlled by your hosting's memory_limit setting. When a plugin, theme, or custom code tries to use more memory than that limit allows - often while processing images, generating a large report, or running a heavy import - PHP stops the script and throws this fatal error rather than let it run unbounded.
Step-by-step fix
- Open cPanel or your hosting File Manager and go to your website's root folder (where wp-config.php is located).
- Edit the wp-config.php file.
- Find this line: /* That's all, stop editing! Happy publishing. */
- Just above it, add this line: define('WP_MEMORY_LIMIT', '256M');
- Save the file and refresh your website.
- If the issue continues, ask your hosting provider to raise the PHP memory_limit to 256M or higher.
How to prevent it happening again
- Avoid stacking too many resource-heavy plugins (page builders, backup tools, and image optimizers are common culprits).
- Keep your media library optimized - very large, unoptimized images increase memory use when processed.
- Choose a hosting plan with a reasonable default PHP memory limit (512M+ if you run an online store or page builder).
😩 Still stuck, or want it fixed without doing it yourself?
I fix WordPress errors like this every day. Send me your error and I'll get your site back up - most fixes are completed within 24 hours.