A PHP “Allowed memory size … exhausted” error means the script attempted to allocate more memory than PHP’s active memory_limit.
- Record the file and line reported in the error or log.
- Determine whether the failure began after a plugin, theme, import, image operation, or application update.
- Check the domain’s effective
memory_limit. - Disable or correct the component consuming excessive memory before simply raising the limit.
- 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.