It is a bit frightening when you go online one day and expect to find your blog, only to be met with a white page and an error like this:
Fatal error: Allowed memory size of ######## bytes exhausted (tried to allocate ## bytes) in /home/user/public_html/wp-includes/phpfile.php on line 80.
The exact message may vary, but with this error, it is all about the “allowed memory size”. Chances are, you just installed a new plugin or theme, and suddenly, WordPress is acting like it is no longer your friend. This error can be tricky, but it is fixable.
You can control the allowed PHP memory limit for your website in several different places, and it may be that only one works for your server. You might want to check with your blog hosting provider for exact details.
If you have access to your php.ini file, find the following line:
memory_limit = 32M ; Maximum amount of memory a script may consume
If the line shows “32M”, try increasing it to “64M’. Some web hosts have memory limits, the maximum amount you can set.
In the event that you do not have access to a php.ini file, you may be able to add the same line to the .htaccess file in your WordPress installation’s main directory. If that does not work, you should contact your hosting provider to see if there is any way to increase the limit.
Finally, if increasing the limit does nothing, you may have a rogue WordPress plugin that needs fixing. Try disabling any recently installed plugins. Since you may not be able to access your dashboard, you will need to disable your plugin manually.