Broken After a Change
How to Fix the WordPress Memory Exhausted Error
Allowed memory size of bytes exhausted
What's happening
You see a message like "Fatal error: Allowed memory size of 268435456 bytes exhausted." In plain terms, WordPress asked your server for more memory than your hosting plan allows, so it stopped mid-task. It often shows up while you're uploading media, installing a plugin, or loading a heavy page.
Why it happens
Every WordPress site has a memory limit set by its host. A lean site rarely gets near it; a site with lots of plugins, a heavy theme, or a big import can bump into the ceiling. Sometimes it's a genuine need for more memory — and sometimes it's a single badly-behaved plugin eating far more than its fair share.
What you can safely try
- Note what you were doing when it appeared — uploading, updating, or opening one specific page is a strong clue.
- Deactivate a plugin you added recently, if you can still reach your dashboard.
- Don't edit
wp-config.phpor server files by trial and error — raising the limit the wrong way, or papering over a real problem, tends to cause bigger ones.
When to call us
The fix is either raising the limit properly on the server or finding the plugin that's wasting memory — and knowing which one you're dealing with matters. That's a routine call for us. If your site keeps hitting its memory limit, send it our way and we'll sort out whether it needs more room or a misbehaving plugin dealt with.
Common questions
- Can't I just raise the memory limit myself?
- Sometimes — but it depends on your host, and a memory error is often a symptom of something using too much, not too little. Raising the limit can hide a plugin problem that resurfaces later, so it's worth checking the cause first.
- Will this keep happening?
- If the real cause is a heavy or faulty plugin, yes — until it's dealt with. If your site has simply grown, a properly raised limit usually settles it. The right fix depends on which one it is.
Related terms
Want this fixed for you?
Emergency WordPress Fixes