One of the problems I am experiencing with WordPress today is an out of memory php error with WordPress 2.8 when I use Arne Brachhold’s Google XML Sitemaps plugin to rebuilt my sitemap:
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 41 bytes) in /…/wp-settings.php on line 288
If I disable all my active plugins except Google XML Sitemaps, I don’t get the error when rebuilding the sitemap.
I am using Godaddy shared hosting, have added the line “memory_limit = 64M” in my php5.ini file and added the line ini_set(‘memory_limit’,’64M’); to my wp-config.php and I still get the error. I did not have this problem with WordPress 2.7.1.
I found this post by Jeff Starr, WordPress Error Fix(?): Increase PHP Memory for cache.php. Maybe his solution had to do with an Apache configuration – the post was written on February 17, 2008, so it wasn’t a WordPress 2.8 issue. Anyway I did the three things he mentioned, and things seem to be OK at the moment. I’m not going to pursue the problem anymore.
Just to let other people know, the link at Arne Brachhold’s is for the beta verion, 4.0b6 Beta, of Google (XML) Sitemaps Generator for WordPress. It requires WordPress 2.9+ and PHP 5.1.
I’m using version 3.2.4 on this blog, with PHP 5.0.
Here’s a link to a discussion about a memory problem with Google Sitemaps Generator: http: //wordpress.org/support/topic/plugin-google-xml-sitemaps-php-memory
try this
i had the same problem now is fixed
http://www.arnebrachhold.de/redir/sitemap-dl-beta/
After reading about the advanced options in the Google XML Sitemaps plugin, specifically:
Try to increase the memory limit to: __ (e.g. “4M”, “16M”)
I changed the limit from 16M to 32M and the Allowed memory size of 16777216 bytes exhausted problem went away.