• Resolved andybrna

    (@andybrna)


    Hi,

    I’ve been seeing this error repeatedly in the last few months. Each time after updating I’m pretty sure everything is fine (not 100% sure) but then I’ll login and this error will have popped up. My PHP is so terrible I’m having trouble working out under which circumstances this error is shown. I can see you need to be a user who can update core, and it can be shown if the .maitenance file exists. The . maintenace file doesn’t exist so what else causes this message to be displayed? I’d like to identify the root cause so I can understand what is going on,

    thanks for any pointers,

    Andy.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter andybrna

    (@andybrna)

    For example can anyone explain to me the code:

    $comparison = ! empty( $failed['critical'] ) ? '>=' : '>';
                    if ( version_compare( $failed['attempted'], $wp_version, $comparison ) )

    Where does it get the two versions form, $wp_version and $comparison?

    Thread Starter andybrna

    (@andybrna)

    ok solved it, there were entries in the wp_sitemeta table relating to auto_core_update_failed.
    Not sure what caused this, but either an admin or auto update obviously. At least I can remove these from the DB to get rid of the error message.

    Awesome! Great catch. Actually, this entry is in wp_options.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘"An automated WordPress update has failed to complete" error’ is closed to new replies.