WordPress – Fatal Error: Allowed Memory Size Exhausted – Solved

One really handy method for troubleshooting rogue WordPress themes or plugins is to view the error_log file in the root web directory (www or public_html). This will reveal what the problem might be should WordPress decide to display its 'useful' blank pages.

An error recenty encountered was the following:

Fatal Error: Allowed Memory Size Exhausted

Its no secret what the problem is here – WordPress doesn't have enough memory to operate. All that needs to be done is to edit the wp-config.php file in your WordPress directory and add the following line:

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

Most themes recommend a 256Mb minimum, but for some reason the default on most cPanel instances is set to 60Mb odd. The above line would be rendered useless if the maximum memory setting WHM <= 256M. This can be changed by going to MultiPHP INI Editor in WHM, selecting your PHP version and changing the memory_limit