• Hello there,

    since quite a long time we have problems with just one of our 185 WordPress installations: The auto updater for this WordPress itself doesn’t run. In 184 WordPresses it does – in this single one it doesn’t.

    The desired behaviour would be for us that WordPress auto updates minor versions but not the major versions.

    We already tried a lot to analyze / fix this:

    – wp-config.php:
    Added define('WP_AUTO_UPDATE_CORE', 'minor'); although this shouldn’t be necessary.
    —> doesn’t help

    – Used the plugin https://www.ads-software.com/plugins/background-update-tester/
    —> says “PASS” to all four tests

    – We activated WordPress error logging and didn’t see any errors.

    Current WordPress version is 5.2.2 @ PHP7.1 & MySQL 5.6, but this problem has been there at least in all of the last versions.

    The only thing that (in our eyes) significantly differs from our other WordPress installations is that this particular WordPress is behind a Basic Auth wall (.htaccess) but as we read that shouldn’t block auto updates.

    Has anyone got an idea, how we could further analyze / fix this problem?
    Many greetings in advance,

    -doffine

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @doffine

    The problem you are facing during an auto-update will probably be due to cron execution issue.

    WordPress crons do get executed once page loads on a browser.

    A solution to this is mentioned in following the link.
    https://nickohrn.com/2014/07/quick-tip-wp-cron-http-basic-protected-site/

    Or try to set cronjob explicitly at server level if you have access to server control panels such as CPanel or Plesk. Or else ask server team to address this for you.

    Hope this piece of information helps, all the best!

    Regards.

    Thread Starter doffine

    (@doffine)

    Hey @aksdvp,

    the solution in your link works – thank you so much! We added the code into Code Snippets plugin (not in mu-plugins) which also works.

    We didn’t think that something like this would work, since the auto update didn’t work even when we were surfing the frontend or backend – so the browser was logged into Basic Auth. But as we see now the cron request seems to need an extra authentification.

    Again thank you very much!

    -doffine

    Hi @doffine

    Glad that the code snippet shared worked for you.

    Yes as per WordPress architecture Cron execution is done only when any page of the site is accessed. Thus an auto-update functionality required a bit more alteration.

    Happy Programming ??

    Regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Auto Update of WordPress doesn’t work’ is closed to new replies.