How to Fix Some WordPress Memory Exhausted Errors

 Posted by on 2010-05-02 at 23:17  Hacking, Internet, Technology  Comments Off on How to Fix Some WordPress Memory Exhausted Errors
May 022010
 

After updating WordPress and redesigning thew0rd.com this weekend I started to get an error message similar to the one below on the WordPress Admin Dashboard:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1966080 bytes) in /home/user/public_html/wp-includes/class-simplepie.php on line 5353

I was able to solve this error by editing the wp-config.php file and adding the following line:

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

What this effectively does is increase the amount of memory that WordPress can use on your web server. You can alternately modify the php.ini file to increase the memory limit, but many web hosts do not allow users to change these parameters. I hope this tip helps people having the same or similar errors on their WordPress 2.9.2 sites.