WordPress fatal memory error fix
I’ve kept getting this error message at my Ussins blog whenever I try upgrading wordpress automatically, and just got it now when trying to automatically upgrade plugins:
“Fatal error: Allowed memory size of 33554432 bytes exhausted”
Fed up with seeing it, I googled it and was led to this page, with a simple fix recommended by the commenter “gestroud”:
You could also add this line to your wp-config.php
define(‘WP_MEMORY_LIMIT’, ’64M’);
This way you won’t have to constantly make the fix again whenever you upgrade WordPress.
I added that line near the top of said file in the install, but made it 128M (for 128 Megabytes), and tried the plugin upgrade again. Error fixed.
Someone else there mentioned it might be caused by a php.ini in the wp-includes folder that would have been added manually “by you or your host”. I find no such file at my web server, only a php.ini.default, and I don’t know if that applies. If it did, it would be changing the line that starts:
memory_limit 32
Which for me had a byte listing (not 32 as in the comments in that thread); I’d assume it would just be quadrupling that number to equal 128 megabytes.
