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.
![]()
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”.
![]()
Here are the step by step instructions:
![]()
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.
If you enjoyed this post, make sure you subscribe to our RSS feed![...] 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 [...]
[...] Overcoming the Wordpress “Fatal Error: Allowed Memory Size” Error | MyTechOpinion.com – [...]
[...] article helped me resolve the issue. Just by changing one number in one of the WordPress files, the problem [...]
[...] If, as I kept getting this week, you get the WordPress ‘Fatal Error: Allowed Memory Size’ error, here’s what to do! [...]
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.
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.
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!
Fantastic!! Thanks for the info – it helped me fix my site myself, always a great feeling for a noob.
Thanks for the detailed info on how to fix that!
I’m an idiot with code, so this kept me from breaking stuff!
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!
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
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.
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.
Thank You. You Da Man!
Thanks! =)
‘Plugin Happy’ is a very apt description
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
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
Great read, i appreciate it.
I like this page, thanks for a good read.
Hey – Thanks a lot for the post! It helped a great deal!
Cara essa dica foi muito boa, parabens
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
Wow I am very happy to see this post..
Great work done…
It is a great post I have seen..
really a good work done..Keep it up….
Thank you! I found several other solutions, none of which worked. This did work. No more error!
wow thanks, i was kinda of working out why it was giving me a fatal error and this has helped fix it
Thanks again!
[... - http://www.mytechopinion.com is another must see authority of information. Online Car insurance claims [… -
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
Super helpful. Thanks!
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
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
Equitas,
That is the single most valuable comment we’ve ever received. It works like a charm. I’ll need to update the blog post to take this into account.
Chad
Thank You, it helped me very much!
So helpful, thanks!
Awesome! Thanks a lot for your help!
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
Thanks for the helpful info I’ve been pulling my hair trying to figure out how to fix this problem.
Thank you! I was about to pull my hair out!
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
thanks
this fatal error was killing me