Print This Post Chad A. Johnson

Overcoming the Wordpress “Fatal Error: Allowed Memory Size” Error

By Chad A. Johnson · June 3, 2009


If you are like me, you love Wordpress for it’s extendability. Through the use of plugins, new features and functionality can be easily added. Because of this, Wordpress is one of the best platforms to build a real estate agent website on.

While plugins can be a blessing, they also can cause problems with a website. This can come in the way of slow website performance or error messages.

One common error message experienced by those getting a bit “plugin happy” (activating a lot of plugins on a single Wordpress installation) is that of the “Fatal Error: Allowed memory size…” error.

Fatal Error: Allowed Memory Size

This error message is a result of Wordpress exceeding it’s predetermined memory limit. Activating several large, high-functionality plugins can easily cause this problem.

Luckily, there is an easy fix.

Wordpress sets its memory limits within the wp-settings.php file. All that has to be done is change the memory limit from “32M” to “64M”.

WP_MEMORY_LIMIT 32M

Here are the step by step instructions:

  • Open wp-settings.php in your favorite code editor. This file is in the root directory of your Wordpress installation
  • Go to line #13 of wp-settings.php and locate ‘32M’
  • Change the “32″ to “64″
  • Save the file and FTP it to your server

WP_MEMORY_LIMIT 64M

Once this is complete, you should have no problems activating those large plugins. Keep in mind that too many plugins can negatively affect website performance, so choose your plugins wisely and only add those that add value to the visitor experience.

For assistance with this or any other Wordpress website related issue or need, contact MyTechOpinion and our MTO Sites design team.

 

Share or Save

  • del.icio.us
  • StumbleUpon
  • Digg
  • Facebook
  • Twitter
If you enjoyed this post, make sure you subscribe to our RSS feed!

Related Posts


Comments

39 Responses to “Overcoming the Wordpress “Fatal Error: Allowed Memory Size” Error”
  1. Brendan Aiello says:

    Very Cool Way To Tweak Wordpress… Luckly the MTO Sites Squad manages my Team Blog and Personal Wordpress Based Real Estate Website, so I don’t have to worry about that stuff too much. I couldn’t be happier with the knowledge, know-how, design insights and customer service you guys provide me.

  2. Ben says:

    Thank you – that was the first time I have ever fixed any coding or errors myself! I did exactly what you asked and problem solved!

  3. Tanya says:

    Fantastic!! Thanks for the info – it helped me fix my site myself, always a great feeling for a noob. :)

  4. Matt Davis says:

    Thanks for the detailed info on how to fix that!

    I’m an idiot with code, so this kept me from breaking stuff!

  5. Chad, you rock!

    I was trying to auto-upgrade from WordPress 2.8.2 to 2.8.3 and kept getting the “Fatal Error: Allowed Memory Size” error.

    I found your blog post as result #5 on Google’s first search-results page after searching for “fatal error WordPress upgrade” (without the quotation marks).

    Wondering whether your tip would apply to WordPress upgrades, I made your recommended change — from ‘32M’ to ‘64M’ — and again tried the auto-upgrade, which then worked!

    Thank you!

  6. Kirk,

    Glad that the fix worked for you. It seems that the new automatic upgrade works like a built-in plugin.

    Remember that once upgraded, the wp-settings.php file will be replaced and will need to be tweaked again.

    Chad

    Connect with me: Twitter
    • Tracy says:

      Thanks for the memory tip. This also allowed me to get past the error when updating. I am glad you mentioned repeating the fix after upgrading.

  7. Martin says:

    I had to Google and try several tips but yours was very easy. Thank you for that. I thought I will have to reinstall Wordpress.

  8. Andy says:

    Thank You. You Da Man!

  9. Thanks! =)

    ‘Plugin Happy’ is a very apt description ;)

  10. Chris says:

    Thank you very much for posting this fix! It worked perfectly and saved me a lot of trouble. I’m not necessarily “plugin-happy”, but apparently the plugins I do have are taking up enough memory to cause a problem.

    Thanks for taking the time to post this information!

    Chris
    clarifile.com

  11. Steve says:

    THANK YOU!!!!!!!!!!!!!!!

    Walking through this has helped me in many ways – learning, for example, what a “code editor” is… lol!

    You’ve relieved me of a tremendous frustration and no small worry.

    Thank you again!

    Steve

  12. yoga pants says:

    Great read, i appreciate it.

  13. I like this page, thanks for a good read.

  14. Nate Gay says:

    Hey – Thanks a lot for the post! It helped a great deal!

  15. arnaldo says:

    Cara essa dica foi muito boa, parabens

  16. mike says:

    This is great, i had this fatal error notification for long , i kept on installing some new pluggins, it got to a point where i could’nt even gain access to my installed pluggins area, all i got was fatal error, now i with the 32 to 64 m change it’s all solved but now i’ve learnt i deleteed all unimportant pluggins to avoid problems…

    Thanks alot

  17. Wow I am very happy to see this post..
    Great work done…

  18. It is a great post I have seen..
    really a good work done..Keep it up….

  19. Thank you! I found several other solutions, none of which worked. This did work. No more error!

  20. wow thanks, i was kinda of working out why it was giving me a fatal error and this has helped fix it :D

    Thanks again! :D

  21. Online Car Insurance >> http://onlinecarinsuranceclaims.com/ says:

    [... - http://www.mytechopinion.com is another must see authority of information. Online Car insurance claims [… -

  22. JGhazally says:

    You are a life saver, just created a CSV import script and imported 2000+ pages into the wordpress site and it freaked out, thankfully this solved the problem! Thank You Thank You Thank You

  23. Apryle says:

    Super helpful. Thanks!

  24. portablejon says:

    too bad wordpress isnt set to do this by default, anyways thanks for the tip, do you happen to know if theres a plugin that does this automatically? ;) lol

  25. equitas says:

    Great tip but you shouldn’t really be changing wp-settings.php at all and you’ve no need to. In fact it says this at the top of the file.

    Wordpress config options can and should be set in wp-config.php. Simply add this to the bottom of your wp-config.php file and it will save you having to worry about wp-settings being reset on each upgrade as wp-config.php is not overwritten during upgrades

    /** Increase the Wordpress memory limit **/
    define(‘WP_MEMORY_LIMIT’, ‘64M’);

    Hope this helps

  26. Eugenijus says:

    Thank You, it helped me very much!

  27. Kyle says:

    So helpful, thanks!

  28. Awesome! Thanks a lot for your help!

  29. JG Ballard says:

    This is a great tweak, I was unfortunate enough to have it happen with only seven plugins! One of them seems to be very hungry.. Thanks

  30. Nick says:

    Thanks for the helpful info I’ve been pulling my hair trying to figure out how to fix this problem.

  31. duane says:

    Thank you! I was about to pull my hair out!

  32. AWESOME!

    I asked about this on Aardvark and got a response pointing to your post here. Thanks so much. I’ve had to juggle plugins just to upgrade my WP installation for a couple of the smaller revisions. Thanks for saving my ass! =]

    -@JoshuaGuffey

  33. ????? says:

    thanks
    this fatal error was killing me

Trackbacks

Check out what others are writing about this post...
  1. [...] I typed the error message into “the google” and came across Chad Johnson’s excellent post on how to fix the problem. You should read the full write-up over here, but here’s the quick [...]

  2. [...] Overcoming the Wordpress “Fatal Error: Allowed Memory Size” Error | MyTechOpinion.com – [...]

  3. [...] article helped me resolve the issue. Just by changing one number in one of the WordPress files, the problem [...]

  4. [...] If, as I kept getting this week, you get the WordPress ‘Fatal Error: Allowed Memory Size’ error, here’s what to do! [...]



Share your thoughts...

If you want an avatar or to include your social profiles join our Facebook community. You can also edit your profile and add your favorite networks.



« Back to text comment
Bottom