Diagnosing a PHP Memory Exhausted Error Print

  • memory, php, troubleshooting, wordpress
  • 0

A PHP “Allowed memory size … exhausted” error means the script attempted to allocate more memory than PHP’s active memory_limit.

  1. Record the file and line reported in the error or log.
  2. Determine whether the failure began after a plugin, theme, import, image operation, or application update.
  3. Check the domain’s effective memory_limit.
  4. Disable or correct the component consuming excessive memory before simply raising the limit.
  5. If a modest increase is appropriate and allowed by the server, make the change through the supported PHP configuration interface and retest.

PHP’s memory limit exists to prevent a script from consuming unbounded memory. Repeatedly increasing it without identifying the workload can move the failure rather than solve it.


Was this answer helpful?

« Back