• Resolved richbhanover

    (@richbhanover)


    Hi – I’m new to these forums but have been using WP for a few years on a number of sites. I hope this doesn’t sound like a rant, but I am extremely frustrated at the inconsistent documentation of how WordPress does (or won’t) automatically update itself.

    1. The Codex (at https://codex.wordpress.org/Configuring_Automatic_Background_Updates) says, “… By default, every site has automatic updates enabled for minor core releases and translation files.”

      This is demonstrably false, as two of my seven WP 4.9.8 sites have not automatically updated. The others did automatically update to 4.9.9. I’m not aware of any interesting differences in their underlying configurations.

    2. The Codex then goes on to talk about defining ‘WP_AUTO_UPDATE_CORE’, but none of my sites has that define() present in wp-config.php.
    3. There are numerous forum postings (such as “How do you update to 4.9.9 and NOT 5.0.1” at https://wordpress.org/support/topic/how-do-you-update-to-4-9-9-and-not-5-0-1/ ) that seem to offer contradictory advice. (“It should happen automatically…” @sterndata; “you need to define ‘WP_AUTO_UPDATE_CORE'” from several people; other advice, too…)

    My questions:

    a) What is the “correct” way to set up a site to so that it’s automatically updated?

    b) What would prevent those two sites from updating to 4.9.9 automatically?

    Many thanks.

    • This topic was modified 7 years, 3 months ago by richbhanover.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    A site will update itself to minor versions for the same cases where the “one-click” updates will work.

    A site will stop auto-updates if it detects either that the one click case won’t work (it needs FTP credentials or some such thing), or if it finds signs of being managed otherwise (like if it finds an .svn or .git directory in its path, which would indicate that it is a checkout from a repository and thus managed that way).

    Thread Starter richbhanover

    (@richbhanover)

    Thanks for the speedy response. I’ve done more investigation:

    – One site does have a .svn directory from an ancient installation. I have deleted that directory and will see what happens.

    – The other site has An automated WordPress update has failed to complete – please attempt the update again now. Is there a way to get any further indication of what went wrong?

    Thread Starter richbhanover

    (@richbhanover)

    @otto42 – an update on the situation:

    – The site that had the .svn directory that I deleted: It auto-updated within several hours. Thanks for that tip.

    – The other site had a file permission problem, which I corrected with chown -R www-data:www-data ~/public_html However, it’s still not updating, even after manually requesting a re-update.

    Is there a way to get more information about the “…automated WordPress update has failed to complete…” message? Thank.s

    Thread Starter richbhanover

    (@richbhanover)

    Update: Still no solution, but a few more clues…

    I found the “Health Check & Troubleshooting” plugin that gives lots of information about your WordPress site. I installed it, and right below the “Updates” item in the menu is a new Health Check panel.

    The plugin offers diagnostic info that I describe in https://wordpress.org/support/topic/copy_failed_for_update_core_file-find-further-info/

    Thanks!

    Thread Starter richbhanover

    (@richbhanover)

    Update: I finally got a resolution to this problem. After conversing with the author of Health Check plugin (https://wordpress.org/support/topic/copy_failed_for_update_core_file-find-further-info/) I was emboldened simply to upgrade 4.9.8 -> 5.0.2.

    I made a backup and then used the Dashboard to upgrade. Everything worked as expected. I’m not sure I have a scientific explanation for why WP wouldn’t upgrade automatically from 4.9.8 -> 4.9.9, but I’m happy now with 5.0.2 installed.O

    So – Lessons Learned:

    • Make sure there are no version control in your wordpress directory
    • Make sure the file owners/permissions are correct
    • Sometimes you just have to force an upgrade
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Updating WordPress Versions – What’s the “right way” to do it automatically?’ is closed to new replies.