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

71 Responses to “Overcoming the Wordpress “Fatal Error: Allowed Memory Size” Error”
  1. 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.

  2. Elaine says:

    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

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

  5. [...] Overcoming the Wordpress “Fatal Error: Allowed Memory Size” Error [...]

  6. [...] 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 [...]

  7. [...] “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 [...]

  8. [...] Overcoming the WordPress “Fatal Error: Allowed Memory Size” Error | MyTechOpinion.com [...]



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