• so, today i started my first day of my internship and they want me to fix an old website they had lying around. In the site health section it says the site has 1 critical issue, it says the following: Error?The?automatic_updater_disabled?filter is enabled. online it says i have to look in a file called wp-config.php and delete a line, but that line is not in in my file. anyone have any idea what to do?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Some plugins are used to disable automatic updates, and since it’s a hook, this line could be in any PHP file. Check in the child theme’s functions.php file or any code snippet plugin that might be used on the website.

    For more details, have a look at here: https://developer.www.ads-software.com/reference/hooks/automatic_updater_disabled/

    Thread Starter vmastah

    (@vmastah)

    Hi Faisal, after some searching yesterday i came across a few lines in a file called: class-wp-site-health-auto-updates. after scrolling down a bit i found the following lines of code:

    public function run_tests() {
    $tests = array(
    $this->test_constants( ‘WP_AUTO_UPDATE_CORE’, array( true, ‘beta’, ‘rc’, ‘development’, ‘branch-development’, ‘minor’ ) ),
    $this->test_wp_version_check_attached(),
    $this->test_filters_automatic_updater_disabled(),
    $this->test_wp_automatic_updates_disabled(),
    $this->test_if_failed_update(),
    $this->test_vcs_abspath(),
    $this->test_check_wp_filesystem_method(),
    $this->test_all_files_writable(),
    $this->test_accepts_dev_updates(),
    $this->test_accepts_minor_updates(),

    i removed the second and third line and after that the critical site health error was resolved. You seem to be quite knowledgable on WP and code, so do you know if i can permanently remove these 2 lines without any major consequences?

    Thanks in advance!

    Thread Starter vmastah

    (@vmastah)

    @faisalahammad sorry, I forgot to tag you, could you look at the last message i sent you in this discussion?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.