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:
- 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
![]()
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.




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
[...] 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 [...]
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
[...] Overcoming the WordPress “Fatal Error: Allowed Memory Size” Error | MyTechOpinion.com – [...]
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!
[...] 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! [...]
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
Perfect, fixed my ongoing wordpress problem. Thanks a million.
AWESOME !!! thanks for the tip
Thank you, great tutorial. It took about 30 seconds with your instruction to fix a problem that was driving me crazy for the past 20 minutes!
How and Where do I get to the wp-settings.php file?
Will very much appreciate your help!!
WP-Settings.php is a core WordPress file. It will be in the root directory of your WordPress installation.
Thanks for your prompt response!!:)
Root directory is accessed from?? I'm sorry I'm rather lost here
You will need to access the WordPress files using an FTP program and a code editing program. When modifying these core files, you need to be very, very careful. Wrong changes can break WordPress.
Not possible accessing from wordpress itself?? :X is the code editing program provided by webhosts?? Oh gosh. It sounds way complicated from here :/
At this point, it is probably best that you call in a professional WordPress developer. It is an easy fix, but it you aren't familiar with accessing WordPress outside of the WordPress admin, it is a bit out of your realm. Our web design team may be a good option for you.
Thank you very much! I've installed several iterations of WP and never had this error, so I had no idea where to look. Other sites stated that you would have to modify your php.ini file, which many of us don't have access to if we are using a shared web service.
The fix took 30 seconds. THANKS AGAIN!!!
-MEW
THANKS! THANKS! THANKS! THANKS! THANKS!
Can anyone help me fix the fatal error on the bottom of our wordpress site?
Thank you!
Paul
http://www.iintoa.com
asdfggh
Thanks a gazillion!
[...] Overcoming the WordPress “Fatal Error: Allowed Memory Size” Error [...]
It doesn't work for me. Is there any other solution?
Thanks
You can define the limit in the WP-Config.php. This does the same thing, so it may not work for you. The problem may be a web host limitation on memory usage. You may need to remove plugins or switch web hosts.
I was editing the wp-config instead of settings. As soon as I realised my error and edited the right file it worked. Cheers.
I'm wondering do you know how to add thumbnails for popular and recen posts like on speckyboy.com at the bottom.
I've been looking all over for how to do this to add it to my cheat sheet with no success
Once again thanks for your repsonse.
Looks like they are using custom fields for the images rather than the built-in thumbnail feature in WordPress. This is beyond covering in a comment. If you would like, our development team could add that feature to your site.
It's for my team because we want to learn a way to do it so we can also develop a plugin.
We are just a team of friends with varied knowledge levels that we are constantly improving on.
Would be great to get it done for us but then we won't learn how to do it. Though thanks for the invitation.
I think this has now changed in WordPress 3 beta. I'm getting this error "Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes)…" when attempting to view forums on my 3.0 beta2 install running BuddyPress.
Any insight would be greatly appreciated. Thanks! =)
-@JoshuaGuffey
We've only played with 3.0 a bit and not on the latest beta 2. My advice is to stick to stable versions. There are too many unknowns when dealing with beta versions.
this helped some but did not totally stop the problem.
LIFESAVER! Thanks!
Thank you. This is better advice than on the buddypress wordpress forum and more importantly it works!
thanks, that worked!
[...] En wat doe je in zo’n situatie? Googlen op de foutmelding toch? Dat leverende direct goed resultaat op. Een incidenteel bezoekje aan een site waar ik de oplossing voor mijn probleem vond. En een paar [...]
[...] “out of memory” así que me puse a buscar la solución por internet, encontré dos variantes o Modificar el wp-settings para darle mas memoria o Añadir un php.ini con mas [...]
Thanks!
It solved the problem very nicely on my digital media blog BetaTales (http://www.betatales.com)!
John
[...] Overcoming the WordPress “Fatal Error: Allowed Memory Size” Error | MyTechOpinion.com [...]
Tried auto-upgrade from 2.8.6 to 3.0 and got the memory error message.
Typed first half of error message into Google and got your site.
Tried your fix and the upgrade went smoothly.
Thanks very much for posting this really helpful tip.
I have had this happen on one of my sites which has been upgraded to v3.0 but unfortunately it does not give the option to change WP MEMORY LIMIT in wp-settings.php
Is there another way?
Thanks in advance
[...] Overcoming the WordPress “Fatal Error: Allowed Memory Size” Error [...]
@Elaine :
I got the same problem with the WP v3.x;
and found the file for the memory limit settings are :
wp-include/default-constants.php
I am so glad that my wordpress installation knows how to decipher images to code. copy paste made really easy. Its fantastic, awesome, so great! thanks.
hi, i also got the same problem :
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 491520 bytes) in /home/username/public_html/wp-content/plugins/wp-e-commerce/display-coupons.php on line 528
when i want to active the plugin of wp-e-commerce
i alrealdy change inside the wp-includes/default-constants.php on the memory limit. but somehow it still not working well. i dont know what to do anymore.
please reply to me, it is urgent for me to use the plugin.
thanks
the wp_memory_limit only can be found in the wp-includes/default-constants.php in my wordpress file , not in the wp-settings.php…
so i m dont know how to fix it since the only thing i found in "google" only to change the wp_memory_limit in the wp-settings.php
Thank you mate
hi, i also got the same problem :
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 491520 bytes) in /home/username/public_html/wp-content/plugins/wp-e-commerce/display-coupons.php on line 528
gReat…that worked for me…
Thanks a ton…u rock man!!
Thanks, worked for me!
I’m getting started straight away. You really do rock!!
/home/content/53/7597553/html/blog/wp-admin/includes/dashboard.php on line 89
my error message is a bit different and I changed the config.php file in my ftp and it still hasn't helped :/ please help me
Thanks a lot, I have solved this problem
Recommened wordpress plugins for new blogger
http://onlinefriendbd.com/2011/09/recommended-wor…
Thank you,sir…
Thank you very much! Adding to the wp-config file worked well. Do I need to worry about this in the future?
[...] Overcoming the WordPress “Fatal Error: Allowed Memory Size” Error | MyTechOpinion.com [...]
I have tried adding the code about in my config file but i still get the same error when creating or editing post. when i deactivate the plugins it all comes fine. what might be the case:
Help
Screen Options
Add New Page
Preview
Status: Draft Edit
Visibility: Public Edit
Publish immediately Edit
Move to Trash
Parent
Parent
Order
Order
Need help? Use the Help tab in the upper right of your screen.
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /home/xxxxx/public_html/wp-includes/class-wp-editor.php on line 588
Hi thank you for your explanation. I have changed from 32M to 64M the fatal msg disappeared but now all i see is the home page, if i click the about us page the home page description shows with about us url, if i click on contact us again the home page shows with contact us url and so on to all pages.
Any advice is much appreciated.
Thank you in advance
Can someone please tell me how to do this step by step.
I’m not at all tech savy and have no idea what these files are!
Thankyou!
[...] Apparently it is an issue when I get "plugin happy", as this blogger points out–>here. That explains why 'Deactivating' Jetpack fixed my problem on the other site. Of course, it's not [...]
I finally think I’ve solved the White Screen of Death from PHP out of memory Fatal Errors.
Full details here: http://www.isthisyourhomework.com/how-to-fix-the-wordpress-white-screen-of-death/
If setting the WordPress and PHP memory limits doesn’t work for you, try adding/edditing the following line in either your Apache conf files. I didn’t have access to those, so I added the following line to the`.htaccess` file in my WP server’s document root:
RLimitMEM max
Many hosts have set limits on each user on shared-use servers. The above setting will unfetter your server and banish the WSOD.
You are a genius, thank you very much for your help. mujereshoy.info is working again