What does a 'Fatal error: Allowed memory size of X bytes exhausted' message indicate, and how do I fix it?

Question

Grade: Education Subject: Support
What does a 'Fatal error: Allowed memory size of X bytes exhausted' message indicate, and how do I fix it?
Asked by:
106 Viewed 106 Answers

Answer (106)

Best Answer
(249)
This error means your PHP script has run out of memory. Increase the PHP memory limit by editing your wp-config.php file and adding 'define('WP_MEMORY_LIMIT', '256M');' (or a higher value like 512M) or by modifying your php.ini file (if accessible).