Memory Exhausted in WordPress

You will need to allocate more memory for your WordPress installation if you are receiving the following error.

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1204480 bytes) in /home/yourdirectory/public_html/wp-admin/update-core.php on line 151

You can insert the following code in your .htaccess file.

# BEGIN Increase Memory Size
php_value memory_limit 64M
# END Increase Memory Size

Or you can insert the following code in your wp-config.php file.

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