• Resolved Georgi.Marokov

    (@georgimarokov)


    After the new release, obviously that core and plugin automatic updates it’s not working by my side. For the core auto updates I added the following mu-plugin:

    add_filter( 'allow_major_auto_core_updates', '__return_true' );
    add_filter( 'allow_minor_auto_core_updates', '__return_true' );
    As I don’t want dev builds. And another mu-plugin for autoupdate plugins:

    add_filter( 'auto_update_plugin', '__return_true' );
    I also use W3-Total-Cache plugin and tried to clear all caches, still no success. Where is my mistake? How to debug this? Is the auto update feature uses cron jobs? Please advice. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Georgi.Marokov

    (@georgimarokov)

    A little luck so far. I found that plugin Background Update Tester which detect why auto updates are not working. I had version control in my folder so I removed it and now everything is passing but still no upgrade either to the core or plugins occurred.

    Thread Starter Georgi.Marokov

    (@georgimarokov)

    So maybe my webserver would require FTP credentials to autoupdate so adding this to wp-config.php would be a clue:
    define(‘FS_METHOD’, ‘direct’);

    Thread Starter Georgi.Marokov

    (@georgimarokov)

    So basically there a few more things to watch out when debugging this issues. I did the following and everything works like a charm.

    Downloaded Background Update Tester plugin to see if there are any conflicts.

    Your WordPress install can communicate with www.remarpro.com securely.
    No version control systems were detected. (I had .git folder in my installation)
    Your installation of WordPress doesn’t require FTP credentials to perform updates. If it does just add define(‘FS_METHOD’,’direct’); in the wp-config.php or add the credentials via some of those contants

    define(‘FS_CHMOD_FILE’, 0755);
    define(‘FS_CHMOD_DIR’, 0755);
    define(‘FS_METHOD’, ‘ftpext’);
    define(‘FTP_BASE’, ‘/httpdocs/’);
    define(‘FTP_CONTENT_DIR’, ‘/httpdocs/wp-content/’);
    define(‘FTP_PLUGIN_DIR ‘, ‘/httpdocs/wp-content/plugins/’);
    define(‘FTP_USER’, ‘username’);
    define(‘FTP_PASS’, ‘password’);
    define(‘FTP_HOST’, ‘123.456.789’);
    define(‘FTP_SSL’, false);
    All of your WordPress files are writable.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Autoupdate is not working’ is closed to new replies.