PHP Fatal Error
PHP Fatal Error Allowed Memory Size Exhausted Error
What This Error Means
This PHP fatal error occurs when a script tries to allocate more memory than the `memory_limit` directive allows. It is one of the most common causes of the White Screen of Death.
Common Causes
- Loading large images or datasets into memory.
- Inefficient code or infinite loops creating objects.
- Using a plugin that requires more resources than allocated.
- Low default memory limit (e.g., 32M).
How to Fix It (For Users)
- 1 Refresh the page.
For Site Owners / Developers
- Increase `memory_limit` in `php.ini`, `.htaccess`, or `wp-config.php` (e.g., to 256M).
- Optimize code to use less memory (e.g., process data in chunks).
- Disable resource-heavy plugins.
When It Is NOT Your Fault
If the hosting provider enforces a strict low memory limit.
Is the website actually down?
Sometimes the issue is just on your end. Check if the website is down for everyone or just you.
Check Website Status →Recommended Tool to Prevent This Error
Prevent server timeouts and resource exhaustion with scalable cloud infrastructure.