Jul 202009
 

Last updated on November 21st, 2015

WordPress Upgrade Error

Neil A. Armstrong - Astronaut Edwin Eugene ´Buzz´ Aldrin, Jr. on Moon (1969)

Neil A. Armstrong - Astronaut Edwin Eugene ´Buzz´ Aldrin, Jr. on Moon (1969)

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….

  1. I hunted for a file list so that I could replace just the changed one – couldn’t find it – “that’s odd” I thought.
  2. Fished around a bit more for it – no joy.
  3. 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!
  4. 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”….

Apollo 11

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.

  One Response to “WordPress 2.8.2 Upgrade – Out of Memory, Apollo 11?”

  1. I’ve just been looking at the staggering beauty of Armstrong’s famous wonky shot of Aldrin which I haven’t looked at properly for many years;
    the stark shadows,
    the blackness of space,
    the absolute awfulness of the place,
    the realisation that without their suits etc, they’d be dead in a few blinks,
    the realisation that the single rocket motor had to fire (it hadn’t been tested before, properly).

    Gad. The moon’s an awful place (paraphrasing Scott of the Antarctic).

    Why would anyone want to muck up and sully our beautiful blue and green world?

    We should look after it.

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

© 1977, Strangely Perfect.