Memory Size of 33554432 Bytes Exhausted

Posted

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.