Saturday, 5 April 2008

Wordpress error - Allowed memory size of ## bytes exhausted

I just came across a problem using wordpress that stopped everything working - any request to the Wordpress site resulted in a blank page. In the log file for the host, I could see:
PHP Fatal error:  Allowed memory size of 8388608 bytes exhausted (tried to allocate 14592 bytes) in <path to a plugin php file>

Removing the plugin specified just meant that the error was reported for the next plugin.

Searching Google showed many discussions about this problem. Luckily the solution for me was easy enough - as described in this topic:
In <wordpress root>/wp-includes/cache.php I just added: