Fix for WordPress “Allowed memory size exhausted” fatal error
While trying to upgrade a few WordPress plugins, I got this error message:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7680 bytes)
After struggling with trying to fix this, I found a really easy solution – increase the WordPress memory allocation size from 32 MB to 64 MB. To do this, edit your wp-settings.php and change line 13 from:
define('WP_MEMORY_LIMIT', '32M');
to
define('WP_MEMORY_LIMIT', '64M');
Simple, easy and delicious. No more memory issues for any plugin upgrades!


Thank you sooooo much for this fix.
James Bao
27 Jun 09 at 11:55 pm
Thanks for posting this. It had me stumped on my upgrade to WP 2.8.2
William Haun
31 Jul 09 at 6:36 am
Well done Trevin. Bluehost support had me messing with php.ini via the world’s most convoluted email, but this did the trick immediately.
Mike Torres
30 Nov 09 at 5:29 pm
Thank you for posting this. You saved me a few hours of coding.
StevenLeconte.com
1 Apr 10 at 12:33 am