Memory Size of 33554432 Bytes Exhausted

I got the following message when I tried to upgrade to the latest version of WordPress through the dashboard:

Fatal error: Allowed memory size of 33554432 bytes exhausted

Thankfully, it was an easy fix. I simply added the following line to the wp-config.php file:

define('WP_MEMORY_LIMIT', '64M');

If this doesn’t fix it on your site, you may also have to adjust the php.ini files. If so, read this post about the php.ini memory limits.

As always, thanks to the good people in the WordPress forums for discussing this topic.

About Devin

I'm a WordPress developer based in Austin, Texas. Follow my projects on GitHub, or more general WordPress ramblings as @devinsays on twitter.

One thought on “Memory Size of 33554432 Bytes Exhausted

  1. Eugen R. wrote:

    That was helpful! Before, I had to disable the plugins to free up the memory, now I don’t need to do that. Thanks.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>