Fatal error: Allowed memory size of X bytes exhausted (tried to allocate X bytes)
How to resovle this problem that took my site down and seems to be a common problem on google.
Create a file called php.ini in the root of your site (if you are using a hosted addon domain, this must be in the subdirectory of that site)
In php.ini, enter a line that says memory_limit = 64MB
In your site’s .htaccess (being a WordPress blog, I’m assuming there is one), enter the following line SetEnv PHPRC // (keep the slashes) Edit wp-config.php and enter the following line define(‘WP_MEMORY_LIMIT’, ’64M’);
Upload the new files to the server
or
It makes more sense to add the line:
define(‘WP_MEMORY_LIMIT’, ’64M’);`
to wp-config.php – wp-settings.php will be overwritten when you upgrade, but if the value is already defined in wp-config then it uses what is set there.
