Automatic updates are not working

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!

1 Answer
1

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 the Background Update Tester plugin to see if there are any conflicts.

  • Your WordPress install can communicate with WordPress.org 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 constants

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.

Leave a Comment