Sometimes during upgrade of WordPress or when you install a plugin you can experience “Allowed memory size of xxx bytes exhausted“.
It usually looks something like this:
Fatal error: Allowed memory size of 33673532 bytes exhausted (tried to allocate 2358947 bytes) in /home2/xxx/public_html/wp-includes/plugin.php on line xxx
WordPress comes with a default memory limit of 32MB. So if you encounter this error try increase the memory limit. Increase the memory limit in steps of 8MB.
There are a few ways of solving this problem and which solution that works for you depends on your host.
If you have access to your php.ini file, find this line and increase the number.
memory_limit = 32M
In your .htaccess file, increase the value or add this line if you don’t have it already.
php_value memory_limit 32M
It is also possible to increase the memory from wp-config.php file.
If none of the above solutions work for you, ask your host.
Remember that you should never change a WordPress core file. If you do, these changes will be removed each time you upgrade to a new version of WordPress.