What does the ‘Allowed memory size exhausted’ error mean?

This PHP error means one request used all memory permitted by its PHP memory limit. WordPress core, the active theme, every plugin involved in the request, database results, and generated media share that allowance. The log states the allowed size, the attempted allocation, and the file where PHP finally stopped.
The named file is a starting point, but the allocation may be the last step in a larger process. Large imports, image processing, page builders, backups, complex queries, and a loop in custom code can consume memory gradually. Compare the failure with the action, data volume, and active components.
Check the effective PHP limit in Site Health and the hosting panel. WordPress can request its own frontend and administrative allowances through configuration constants, but a server-level cap still controls the maximum. Raising the value may let a legitimate heavy task finish, provided the hosting account has enough real memory.
Use profiling or controlled plugin tests when ordinary page requests consume excessive memory. Correct unbounded queries, replace the faulty component, process large jobs in batches, and optimize media before upload. Monitor memory after the repair because a higher limit can postpone the same failure without removing its cause.