• Resolved pieterw3

    (@pieterw3)


    I updated wordpress to the latest version (4.5). The site works fine but after going to the wp-login page I get the normal Database update option, after clicking this I get the following error:

    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 4533051 bytes) in /DELETED/PATH/public_html/wp-includes/functions.php on line 434

    The Memory limit is set on 256 MB. I tried turning of all plugins by renaming the plugins folder the upgrade would still fail. I also noticed that my PHP version is lower then recommended could this by an issue?

    PHP version: 5.4.45
    Mysql version: 5.5.42-37.1

    It seems to me that some script is trying to update the database and then runs out of memory. Any help would be appreciated.

    If you need any more information let me know.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Jason King

    (@jasoncharlesstuartking)

    You can see WordPress requirements here – https://wordpress.org/about/requirements/ – yes, this *might* be an issue, can you ask your host to upgrade to something more reasonable?

    You say the memory limit is set at 256. But double check that via your hosting control panel or by using phpinfo() or https://wordpress.org/plugins/wordpress-php-info/ because you can tell the server to do this but it can ignore you. If it’s actually less, there are alternative methods to set the memory limit.

    Dmitrii

    (@odminstudios)

    Same issue.

    Run my site on
    Apache 2.2.15-39.el6.centos
    MySQL 5.1.73-3.el6_5
    PHP 5.3.3

    After update got this
    PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 523800 bytes) in /DELETED/wp-includes/formatting.php on line 265

    Dmitrii

    (@odminstudios)

    Have no time now to investigate why it is so.
    Downgraded to 4.4.1.

    pieterw3, here is a list of plugins, I have installed.
    autoblog
    Contact Form 7
    Cookies for Comments
    Jetpack
    Q&A – WordPress Questions and Answers Plugin
    Quick Cache
    Quick Cache comment garbagecollector
    RusToLat
    Simple Local Avatars
    WP Sitemap Page
    Yoast SEO
    wp-pagenavi

    Could you, please, check and tell if you have any of them installed too?
    Might be some incompatibility issue with one of the plugins or theme. Cause updating another site on same server goes well.

    Jason King

    (@jasoncharlesstuartking)

    @odminstudios perhaps you didn’t notice but pieterw3 has already tried switching off all plugins and it didn’t help. So he’s unlikely to be having a plugin issue.

    Dmitrii

    (@odminstudios)

    Jason King, yes, kinda overlooked that part.
    So looks like it can be some issue with the current theme.
    I use ‘DW Minion’

    Jason King

    (@jasoncharlesstuartking)

    @odminstudios your problem is probably not the same as the original poster’s so you need to start your own support question, not tag onto his.

    Dmitrii

    (@odminstudios)

    Jason King, well, as for me the problem looks quite the same:
    we both receive out of memory error after updating to WordPress 4.5.

    As for the difference in ‘error lines’ – I allow my sites to have 128 mb, so they run out of memory faster and error line numbers differ.

    Thread Starter pieterw3

    (@pieterw3)

    I temporarily changed the memory limit to 512 MB in the php.ini After this the database upgrade went through. After the update I changed it back to 256MB.

    Seems to me like a problem with the old PHP / MySql version. I will try and get the host to upgrade.

    mauriw123

    (@mauriw123)

    Not looking for support yet. but just wanted to chime in that I have the same issue with one of my sites on Siteground.

    All plugins and themes are disabled. Sometimes the backend dash works and sometimes it does not. The only fix I have is rolling back Core to 4.4.x but I must roll the database AND the files or I still have the memory issues.

    I am still investigating and will report back if I find any clues.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Memory exhausted after clicking "Update WordPress Database"’ is closed to new replies.