Knowledgebase

Fixing "Allowed Memory Size Exhausted" Print

  • wordpress, troubleshooting, php, plugins, errors, cpanel, domain, support
  • 0

PHP ran out of memory mid-request. It appears as a white screen, a partially rendered page, or an explicit fatal error naming a byte count.

1. Raise the PHP memory limit

cPanel → MultiPHP INI Editor → select your domain → set memory_limit to 256M → Apply.

2. Raise the WordPress limit too

WordPress applies its own cap. Add to wp-config.php:

define('WP_MEMORY_LIMIT', '256M');
define('WP_MAX_MEMORY_LIMIT', '512M');

3. Confirm it applied

Tools → Site Health → Info → Server shows the active PHP memory limit.

4. Find what is consuming it

Raising the limit treats the symptom. If 256M is not enough for an ordinary page, something is wrong. Install Query Monitor and check peak memory per request; look particularly at page builders, image-processing plugins, large product imports and statistics plugins.

Plan limits

Shared plans cap memory to protect other accounts. If your site genuinely needs more than the plan allows, open a ticket and we will advise on the right upgrade.


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot