Last updated on November 21st, 2015
WordPress Upgrade Error
I had messages from one of my managed sites that it went invisible and chucked out weird messages…. Well that’s certainly up to the normal standard of feedback I get as a tech person!
However, I too when doing this website got an annoying message on the recently introduced WordPress auto-update feature – it ran out of memory!
The message went:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2355395 bytes) in myRoot/wp-includes/http.php on line…
Now I’m loath to download stuff and re-install files when a method exists to eliminate this tedium. So….
- I hunted for a file list so that I could replace just the changed one – couldn’t find it – “that’s odd” I thought.
- Fished around a bit more for it – no joy.
- Saw single posting about the XSS vulnerability – ah! This is important and they’ve whacked it out fast before talking about it! Security first, chat second. THIS IS GOOD!. This is one of the reasons I like WordPress – actions speak louder than words!
- Tried looking for a generic fix using the error message – this link in the forums provided the fix! http://wordpress.org/support/topic/194370
So that’s the answer for me, and it worked. This is the code change you need to do:
In wp-settings.php which is one of the files in your WordPress root installation (i.e. not in one of the sub-folders), set the memory limit like so (it’s at the top of the file, just after the comments):
if ( !defined('WP_MEMORY_LIMIT') ) define('WP_MEMORY_LIMIT', '64M');
The ’64M’ is the new value. Previously it was ’32M’.
There are other fixes, but this worked for me, and if it works, ultimately, that’s all I’m bothered about! It’s the old answer of “chuck more memory at it”….
As an aside, on the 40th anniversary of men walking on the moon, the lunar module computer has ~76k of memory! This is Don Eyles, whose first proper job as a young man was to program that computer…. How times change.