Support » Fixing WordPress » Fatal memory error when trying to update to 3.2

  • Resolved WpThemesPlanet

    (@wpthemesplanet)


    When trying to update automatically from the dashboard, I get this error:

    Fatal error: Out of memory (allocated 25690112) (tried to allocate 3934428 bytes) in /public_html/wp-includes/class-http.php on line 1426

    I checked my server and I have memory free. Also I changed the php.ini first to 64M and then to 128M and it didtn’ help. I tried disabling all plugins and try to re-install and it didn’t help.

    Only solution was to update manually, downloading all files from WordPress.org and uploading everything via FTP. But I still have many other sites I need to update and it will take very very long to use the manual method. First time I get this error with automatic updates.

    Any ideas?
    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    It’s usually a per-server issue. Some just don’t have the memory to run the automated upgrade.

    That is the correct method to do it, however, if you can’t automate.

    If you have SSH access, you can do it a LITTLE faster via command line.

    I too got this same error:

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3934428 bytes) in /wp-includes/class-http.php on line 1426

    and it’s the first time I’ve ever had issues with the automatic upgrade – which I use on several websites. So I’m puzzled that it’s a server issue since it never happened before.

    Memory is not a problem on the server, the site has plenty of room.

    Ah, found the solution to my problem – I forgot to deactivate my plugins first before upgrading. Upgrading worked fine once I did that.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Room (i.e. diskspace) is not the same as Memory 🙂

    Try the manual upgrade.

    When this happens, how do you get back to the admin screen?

    Thread Starter WpThemesPlanet

    (@wpthemesplanet)

    The strange part is that I’m running this on a VPS (not shared) and have plenty of memory free, just checked via SSH (free -m) and 50% memory free. I have 1GB memory on that VPS.

    I have another identical VPS and I don’t see the problem on that server. I just auto-updated like 10 blogs to WP 3.2 there with no issues.

    Also I always run the automatic update on these sites and never noticed any problems.

    Thanks for any inputs or help you can give. If there is really no solution, well I will keep with manual for now. Just strange, since I can’t find any logical reason right now.

    Cheers.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    wpThemesPlanet – The answer is always to turn off plugins, try again, and pending that, do it manually.

    If you watch top WHILE you upgrade you might see something.

    Thread Starter WpThemesPlanet

    (@wpthemesplanet)

    Ok people, I finally contacted my host and they fixed it.

    If it is of any help to anyone this is what they told me:

    “it looks like there were rlimits set within your apache configuration file”

    They fixed this and it’s working perfectly fine now.

    The problem is resolved.

    Cheers.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Fatal memory error when trying to update to 3.2’ is closed to new replies.