Back on the 27th of June I wrote about a memory error I was seeing in my various WordPress sites. There error was very similar to this “Allowed memory size of 33554432 bytes exhausted”, and I found a fix for this error. I have started to see this error again so did another search and came across the following post in the forums of Bluehost.com. The fix is similar to below but you need to do one more thing if you are hosting your websites with Bluehost.com.
- Login to the Control Panel
- Scroll down to Software / Services and click on PHP Config.
- Choose the 2nd radio button PHP5 (Single php.ini) – Same as PHP5, but all subdirectories will use ~/public_html/php.ini
- Save Changes – Problem solved.
I’ve been seeing memory errors lately on my various WordPress websites and after much investigation found a support topic 194370, which offered a solution that has definitely fixed the problem for my three web sites.
In the root of your website or WordPress site edit the file wp-settings.php and on line 13 change the define(‘WP_MEMORY_LIMIT’, ‘32M‘); to define(‘WP_MEMORY_LIMIT’, ‘64M‘);