• Resolved frieshansen

    (@frieshansen)


    Hi,
    a click on “no” in the “auto-enable-update-option” gives the following PHP error in our installation:

    [21-Feb-2024 10:54:38 UTC] PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function wc_prevent_dangerous_auto_updates(), 1 passed in /usr/www/users/username/wp-includes/class-wp-hook.php on line 324 and exactly 2 expected in /usr/www/users/username/wp-content/plugins/woocommerce/includes/wc-core-functions.php:2276
    Stack trace:
    #0 /usr/www/users/username/wp-includes/class-wp-hook.php(324): wc_prevent_dangerous_auto_updates(true)
    #1 /usr/www/users/username/wp-includes/plugin.php(205): WP_Hook->apply_filters(true, Array)
    #2 /usr/www/users/username/wp-content/plugins/limit-login-attempts-reloaded/core/Helpers.php(134): apply_filters('auto_update_plu...', true)
    #3 /usr/www/users/username/wp-content/plugins/limit-login-attempts-reloaded/core/Ajax.php(808): LLAR\Core\Helpers::is_block_automatic_update_disabled()
    #4 /usr/www/users/username/wp-includes/class-wp-hook.php(324): LLAR\Core\Ajax->toggle_auto_update_callback('')
    #5 /usr/www/users/username/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #6 /usr/www/users/username/wp-inc in /usr/www/users/username/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 2276

    Best regards
    Frieshansen

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author WPChef

    (@wpchefgadget)

    Try turning off WooCommerce and then clicking No. It looks like WC somehow interferes with this feature, we’ll take a closer look at this too.

    Thread Starter frieshansen

    (@frieshansen)

    Thanks for the fast feedback. I deactivated woocommerce on staging and then it worked. But this is not possible on production. There is nothing urgent about it – I would be happy if it was taken into account in one of the next updates.

    Plugin Author WPChef

    (@wpchefgadget)

    We’re going to deploy a fix for this in the next version of the plugin.

    Plugin Author WPChef

    (@wpchefgadget)

    Hello, please install the latest version which addresses that issue.

    Thread Starter frieshansen

    (@frieshansen)

    It now works as expected – thanks for the fix.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Click on “no” in “auto-update-notice” throws PHP Fatal error’ is closed to new replies.