Automatic Updating Never Runs At All
-
Hi,
I created two sites that are hosted on a server (chosen by the client) that has been hacked multiple times in the past, so it’s critical that any updates to WordPress or the plugins are applied as soon as possible. I used to use the Automatic Updates plugin. This worked fine until the automatic update functionality was added to the WordPress core last year. Since then, nothing seems to work except manually going in and telling it to apply the updates, which is far from ideal.
I tried recreated both (simple) sites from scratch with new databases and WordPress installs, but it made no difference.
I added this code to both wp-config.php files:
/**Sets up 'direct method for wordpress autoupdate, without FTP */ define('FS_METHOD','direct');
I also applied universal 755 permissions to the complete FTP directories. One of the sites apparently updated a single plugin a couple of days later, but the other didn’t and neither have done anything since.
I’ve added the following code to my wp-config.php files as per this codex page:
add_filter( 'auto_update_plugin', '__return_true' );add_filter( 'allow_major_auto_core_updates', '__return_true' );add_filter( 'allow_minor_auto_core_updates', '__return_true' );
This seems to have had no effect. Both websites are currently just sitting on both plugin and core updates.
I’ve installed and run the Background Update Tester which reports no problems at all. I’ve tried both the Advanced Automatic Updates and Update Control plugins to get debug emails, but I never get any failed attempt emails at all, seeming to mean that the updates never even try to start.
I’ve tried Googling the issue plenty of times but all I get is old stuff about FTP credentials (apparently manually pressing the update button was also called ‘auto updating’ as well(?), which doesn’t help to narrow my results down any).
Any advice would be greatly welcome. I should stress that I have never had any problems like this with websites on my preferred hosting provider, but I’m not in a position to move these ones.
- The topic ‘Automatic Updating Never Runs At All’ is closed to new replies.