Support » Plugin: Companion Auto Update » Does not upgrade

  • Resolved maniackcrudelis

    (@maniackcrudelis)


    Hi

    I’m the maintainer of the wordpress package for yunohost.org
    In this package, used by many of our users, we have added your plugin to keep wordpress up to date.

    However, users told us that their wordpress instances aren’t up to date, even though your plugin is activated.

    I have myself 4 wordpress on my own server. I rarely receive emails for upgrades, and usually upgrade manually myself.

    Looking at the Status tab, I can see next upgrade are planned to the 9 December 2016 or 18 December 2017 and only one to 29 march 2019.
    All 3 not up to date wordpress aren’t publicly accessible, and 2 of them have Search Engine Visibility turn to off.

    Should I understand that the update interval is triggered by visitors ? Is there another way to trig update ?
    I notice also that even when visiting the site, the upgrade isn’t triggered.

    Thanks for your help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Papin Schipper

    (@papin)

    This plugin uses the default wp_cron function which is run when your website is pinged, so when either a visitor or bot views your site. But it should work immediately when you visit the site yourself.

    There are two things you could try, the first would be to add the following code to your wp-config file:
    define('ALTERNATE_WP_CRON', true);

    Second would be to switch from WP_CRON to server-side cronjobs. This would probably be the best solution as it even works with 0 visitors.

    Also, have you tried re-activating the plugin? Are all WordPress versions and this plugin versions up to date? And what PHP versions are they running?

    Hello

    I tried re-activating the plugin, with no apparent effects.

    Companion Auto Update is up to date on every WordPress, but not the core itself, nor some other plugins.
    For my not up to date WordPress, the core is at version 4.9.8

    Just found out that one of my 3 not up to date WordPress has done this upgrade.
    Another one was asking for the plugin to be reactivated. Now the status of the plugin for this WordPress is to update again tomorrow.

    The last one is still stuck on 9 December 2016

    What do you mean by “server-side cronjobs” a simple cron task ?
    That would be an interesting lead to follow, but what would contains such a cron task ?

    Plugin Author Papin Schipper

    (@papin)

    Have you tried changing the intervals on the one stuck on 9 December 2016?
    Also, do you get any errors when going to http://www.yoursite.com/wp-cron.php?doing_cron ?

    Yes, simple cron tasks. There are plenty of tutorials out there on how to replace wp_cron with real cron but HostGator has a really good one.

    Changing the intervals immediately set the next check to the following minute.
    But… I actually try that on a wordpress with 6 pending upgrades, core, plugins, themes and translations, and nothing happened since.

    I tried http://www.yoursite.com/wp-cron.php?doing_cron and http://www.yoursite.com/wp-cron.php?doing_wp_cron, none of them gave me any errors.
    Nor did anything…

    However, after playing with the intervals, I reached again wp-cron.php?doing_wp_cron and this time it has triggered the upgrade and did the 6 pending upgrades.

    Using a cron task is clearly something we can do with YunoHost for all our users.
    But did the issue about the intervals would be fixed by a cron reaching once or twice a day wp-cron.php?doing_wp_cron ? Do a cron would wake up the plugin ?

    I’m going to set a cron task on my own server to see if it works.

    Finally, using a real cron solves the problem.
    I set cron tasks for the 2 last wordpress that haven’t been yet updated. Both are now up to date.

    I’m going to set cron tasks for all wordpress installed with YunoHost.
    Thanks for your time.

    Plugin Author Papin Schipper

    (@papin)

    Glad to hear you got it working! And if there’s ever anything else do feel free to reach out to me! 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.