WordPress 2.8 Memory Usage
With the release of wordpress 2.8 some people are experiencing out of memory php errors along the lines of:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 228968 bytes)
You may also be seeing pages fail to load fully (for example the wordpress admin dashboard) if php error messages are hidden. I’ve already had one case where we thought certain plugins were to blame but in fact it was just out of memory. A possible fix (which worked in the previously mentioned case) is to add:
@ini_set('memory_limit','64M');
to your wp-config file. Has anyone else encoutered this error?
Found this post useful? Why not buy me a coffee!










Yves B says:
After upgradind to WP 2.8, according to the plugin wp-memory-usage, i was using 95% of the memory.
I applied your fix and I use now 50 % of the memory. I can now reactivate all my plugins.
Thank for this fix.
Comment made on June 15, 2009 at 9:22 pm
oceangray says:
http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP
Comment made on June 15, 2009 at 9:26 pm
Harsh Agrawal says:
I was planing to update to WordPress 2.8, but recently few of my clients reported lots of problems like
Internal server Error
Broken Permalinks and broken theme issue..
So for now
I will wait for some more reviews and issues before I will upgrade my blog to wordpress 2.8
Comment made on June 16, 2009 at 6:55 pm
Mike Jolley says:
@oceangray: That solution looks good too, I never knew about that one.
Comment made on June 16, 2009 at 7:56 pm
Leslie Wong says:
I am experiencing a similar out of memory php error with WordPress 2.8 when I use Arne Brachhold’s Google XML Sitemaps plugin.
I am using shared Godaddy hosting, have added the line “memory_limit = 64M” in my php5.ini file and tried your fix and I still get the error.
If I disable all my active plugins except Google XML Sitemaps, I don’t get the error when rebuilding the sitemap.
I did not have this problem with WordPress 2.7.1.
Comment made on July 2, 2009 at 10:11 pm
Mike Jolley says:
@Leslie Wong: Try one of the solutions in the comments above ^ If not youll have to wait for the next version of wordpress (8.1) because I think they fixed it.
Comment made on July 2, 2009 at 10:16 pm
Carolyn says:
Thank you so much! What a quick and easy fix for the ‘code impaired’. My dashboard loads perfectly now.
Comment made on July 4, 2009 at 2:58 am
John says:
Thanks so much! I added that line of code to my wp_config.php file and my “out of memory” error disappeared as well. I was getting the error on my WP Dashboard as well as while trying to upgrade some (not all) plugins. Now it all seems to be working as it should.
Comment made on October 13, 2009 at 11:04 pm
SnowFoxCreations says:
Thank you! I had been having this problem, but adding
@ini_set(‘memory_limit’,’64M’);
to the wp-config.php file solved it immediately. An easy fix to a frustrating problem.
Comment made on February 16, 2010 at 5:46 am
Ryan Wilkins says:
Legend!
This works and it was driving me MAD
Comment made on April 14, 2010 at 3:45 pm
Charles Balls says:
You rock!
Comment made on April 30, 2010 at 12:21 am
Mohummad Abdullah says:
Man Its Work.. Very NIce Quick Affective solution.. thnkx.
Comment made on September 3, 2010 at 11:43 am