In case you get an error message like the one below, you can fix it:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 16 bytes) in /usr/www/users/scenic/fatmixx/wp-includes/cache.php on line 4
Other symptoms include a blank page when you try to post a new entry or edit an existing one in WordPress. The issue is that PHP 5.2 can be configured to take a memory limit and a lot of hosts set the limit quite low by default. My host upgraded PHP today to 5.2 and I ran into these issues.
Assuming your host allows you to, you can fix this by overriding the memory settings. 16M or 32M works well. How you set this depends on your host, but you can google .htaccess files or php.ini files. Here’s what I have in my .htaccess file:
php_value memory_limit 32M
That’s it. Hope this helps someone.






September 24th, 2007 at 8:38 pm
I have the same issue with php 5.2.3 and wp 2.2.3 after the web host updated php version. Why is this a problem? Does WP need more memory when running under php 5.2?
September 24th, 2007 at 9:51 pm
not sure… it might, or there may be different options compiled into the new version that require more memory or set the defaults lower.
April 7th, 2008 at 6:11 pm
it works. thanks.