Auto-update fails

Auto updating fails almost every time at least for one (alternating) plugin. Update errors occur even for free plugins from wp repository. What might be a reason for that? However, updating manually (on backend or on The Hub) works just fine.

  • Nithin
    • Support Wizard

    Hi eWoolution

    Sorry to hear about the issue, could I know for which specific site you notice the issue more? So that we could troubleshoot the site individually, and check the logs to have a better idea regarding what's causing this, so the same could be corrected in other sites too.

    Also, please do enable support access to one of the site where you notice this, so that we could give a closer look too.

    You can grant access from WPMU DEV > Support > Support Access > Grant Access, or check this manual:

    Please let us know once you enable access, so that we could get this sorted. Have a nice weekend. :slight_smile:

    Kind Regards,

  • Nithin
    • Support Wizard

    Hi eWoolution,

    Sorry for the delay in getting back to you. This is an odd issue, I could notice there are more plugins other than Post SMTP that needs update.

    However checking the automate logs, it does show the automate did try updating the plugin without any issue. For example WooCommerce, Manage WP etc plugins seems to be updated in automate logs, but not when checking the site.

    I then ran a manual update via Hub, and it worked fine. Could you please enable debug mode in your mentioned site, so that we could see whether there are any issues that we could pick during the next automate cycle.

    To enable it, open your wp-config.php file located in your root directory, and look for define(‘WP_DEBUG’, false);. Change it to:

    define('WP_DEBUG', true);

    In order to enable the error logging to a file on the server you need to add:

    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );
    define( 'SCRIPT_DEBUG', true );
    define('WPMUDEV_API_DEBUG', true);
    define('WPMUDEV_API_DEBUG_ALL', true);

    The defines WPMUDEV_API_Debug, and WPMUDEV_API_DEBUG_ALL should give a clear idea what's going on. After making the above changes, in the next automate run, the relate errors will be saved to a debug.log log file inside the /wp-content/ directory.

    Please attach these in your next reply in txt format file, so that we could give a closer look. Please let us know how that goes, have a nice day. :slight_smile:

    Kind Regards,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.