• Resolved Cyanara

    (@cyanara)


    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • shadez

    (@shadez)

    those add_filter() are applied on functions.php file in your theme.

    for emails, check for this variable: add_filter( 'auto_core_update_send_email', '__return_false' );

    DISALLOW_FILE_MODS in wp-config could stop automatic updates.

    we been discussing similar stuff in this thread.

    Thread Starter Cyanara

    (@cyanara)

    Awesome, mate. Thanks for that. Messing with functions.php rarely ends well for me, so I’m giving the plugin method a go, with a few tweaks like adding plugin updates. Hopefully it works out for everyone.

    It seems like the codex page on this matter could stand to be a bit clearer. For the average person, all they are going to see is “put these lines into wp-config.php”. It doesn’t really explicitly mention editing functions.php, let alone how to create a quick plugin. Anyway, we’ll see whether this works by tomorrow.

    shadez

    (@shadez)

    yes i can understand bout codex.. sometimes its hard to differentiate sections from sub-sections, esp without numbering.
    as for functions.php, that cant really be mentioned in the codex because these mods are a part of actions, hooks, filters, etc from pluginAPI.

    Thread Starter Cyanara

    (@cyanara)

    Sadly, none of the plugins or adding code to functions.php seems to have had any effect. I added a wp-cron hourly schedule through my Cpanel after seeing it mentioned in the WP blog entry from when automatic updates were released. The complete absence of WordPress noticing any problem with its inaction suggested the problem may lie with that, but adding a wp-cron schedule on its own hasn’t changed anything. I don’t know if I need to create something on the WordPress side to help it trigger.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Automatic Updating Never Runs At All’ is closed to new replies.