• I updated to version 5.5 and set all plugins and themes to auto-update. However, the Site health link gives the following critical warning:
    “Auto-updates for plugins and/or themes appear to be disabled, but settings are still set to be displayed. This could cause auto-updates to not work as expected.”

    I have no idea what caused this message and the site has no modifications to how WordPress is updated. The site is working fine, but I don’t know if auto updating will occur. Any tips are welcome. Thanks.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi, david, I took a look at class-wp-site-health.php, which contained the following function, abbreviated to point out what may be causing the issue:

    function detect_plugin_theme_auto_update_issues() {
                    //.........
                    //.........
    		$test_plugins_enabled = apply_filters( "auto_update_{$type}", true, $mock_plugin );
    		//.........
    		$test_themes_enabled = apply_filters( "auto_update_{$type}", true, $mock_theme );
    		$ui_enabled_for_plugins = wp_is_auto_update_enabled_for_type( 'plugin' );
    		$ui_enabled_for_themes  = wp_is_auto_update_enabled_for_type( 'theme' );
    		//.........
    		if ( ( ! $test_plugins_enabled && $ui_enabled_for_plugins )
    			|| ( ! $test_themes_enabled && $ui_enabled_for_themes )
    		) {
    			return (object) array(
    				'status'  => 'critical',
    				'message' => __( 'Auto-updates for plugins and/or themes appear to be disabled, but settings are still set to be displayed. This could cause auto-updates to not work as expected.' ),
    			);
    		}
    

    The gist of it is that $ui_enabled_for_plugins,$ui_enabled_for_themes,$test_plugins_enabled,$test_themes_enabled are potentially causing issues.

    I’m unfamiliar with the newly included auto-updating code, though, to suggest a potential solution at the moment.

    Thread Starter david

    (@dskirk)

    Thanks much for digging into this. Far over my head. I noticed the message appears for several sites I maintain, but not all. Maybe it’s a bug in latest WordPress release. I will know better when a plugin or theme is supposed to update automatically. For now, everything is working. Again, thank you very much for uncovering this information.
    david

    I have the same message and same circumstances as you do David. So I guess we just wait and see for now?

    • This reply was modified 4 years, 7 months ago by kmoya.
    Thread Starter david

    (@dskirk)

    Fortunately, updates are going smoothly – and the annoying (to me) email messages to tell me of the updates are not appearing – so, for what it’s worth, no problems seem evident (yet).

    Good to hear. I hope someone fixes the code before the next update.

    I’m also looking forward to a fix ??

    Hi I’having the same issue with the updating plugins. Now who is going to fix this? Or do I copy the code that ian just gave us and the question is where should I write it?

    Gus
    https://www.lucin.co

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Auto-update warning in 5.5’ is closed to new replies.