WordPress Memory Exhausted

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.

3 Replies to “WordPress Memory Exhausted”

  1. 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.

Leave a Reply