WordPress 2.8 Memory Usage

June 15, 2009 | Published in: Out of the Blue | Tags: , , , 11

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!

Related Entries

11 Responses to “WordPress 2.8 Memory Usage”

RSS feed for comments on this post.

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

    ReplyReply

    Comment made on June 15, 2009 at 9:22 pm

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

    ReplyReply

    Comment made on June 16, 2009 at 6:55 pm

  3. Mike Jolley says:

    @oceangray: That solution looks good too, I never knew about that one.

    ReplyReply

    Comment made on June 16, 2009 at 7:56 pm

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

    ReplyReply

    Comment made on July 2, 2009 at 10:11 pm

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

    ReplyReply

    Comment made on July 2, 2009 at 10:16 pm

  6. Carolyn says:

    Thank you so much! What a quick and easy fix for the ‘code impaired’. My dashboard loads perfectly now.

    ReplyReply

    Comment made on July 4, 2009 at 2:58 am

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

    ReplyReply

    Comment made on October 13, 2009 at 11:04 pm

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

    ReplyReply

    Comment made on February 16, 2010 at 5:46 am

  9. Ryan Wilkins says:

    Legend!
    This works and it was driving me MAD

    ReplyReply

    Comment made on April 14, 2010 at 3:45 pm

  10. Charles Balls says:

    You rock!

    ReplyReply

    Comment made on April 30, 2010 at 12:21 am

Leave a Reply

About this site

Blue Anvil is the online web design journal & portfolio of , a web designer from Norfolk, England. Read More »
MiniCard Theme for WordPress
  • Featured work - More

    • Beefjack
    • Integrity
    • theotaku.com
  • Latest Tweet - More

    • RT @jameskoster: Free MacBook Pro vector; http://www.potatoestomatoes.co.uk/technical/free-macbook-pro-vector/ #vector #resource
  • Out of the blue - More

    • Closing the Forums

      Just posting to let current users know that I’m closing the forum on Blue-Anvil. This is mainly due to spam-registrations getting out of hand and being a general nuisance. I will be posting good topics as FAQ items within posts if applicable.

      Please note that you can still post and get help for my plugins/themes by posting on the wordpress.org website.

    • Show off your MiniCard!

      Are you a user of the WordPress MiniCard theme? Its been downloaded over 14,000 times so far!

      If you have used it as-is, made your own child-theme or done something creative with it, please show off your MiniCard’s in the comments, I’d love to see how the theme is being used!

    • Spam Stopper updated for WordPress 3.0

      My Spam Stopper plugin has been updated for WordPress 3.0 (version 3.1.3) – you can grab it here. Sorry this update took longer than my other plugins but this one gets less lovin’ – if you want to change that feel free to donate, spread the word, or rate it on the WordPress.org plugin page.

    • SexyBookmarks & Tr.im

      Just a notice to users of the brilliant http://www.sexybookmarks.net/ plugin by shareaholic – If you use tr.im (as I have on a few client sites) be aware tr.im has ceased operation so you may see errors on your blog or in your source code; it screwed up the background and headings on one of my blogs.

      To fix, go to sexybookmarks options, switch services in the “Which URL Shortener?” box, and tick the box to reset all short urls. Once done, your blog should return to normal.