Fix for WordPress “Allowed memory size exhausted” fatal error

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

 

While trying to upgrade a few WordPress plugins, I got this error message:

Fatal error: Allowed memory size of 33564432 bytes exhausted (tried to allocate 7680 bytes)

Logo_Wordpress

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');

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

to

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

Simple, easy and delicious. No more memory issues for any plugin upgrades!

Another way is to edit php.ini and define the memory_limit there:

memory_limit = 48M

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.