• Hi! I have Users Ultra Lite and Woocommerce installed on my website which is running wordpress 4.9.2 on php 7.1. When I log into my site as an admin, I get the following error:

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function wc_maybe_store_user_agent(), 1 passed in /home/macinnisrr/public_html/volocian/wp-includes/class-wp-hook.php on line 286 and exactly 2 expected in /home/macinnisrr/public_html/volocian/wp-content/plugins/woocommerce/includes/wc-core-functions.php:1716 Stack trace: #0 /home/macinnisrr/public_html/volocian/wp-includes/class-wp-hook.php(286): wc_maybe_store_user_agent(‘lcqa7w’) #1 /home/macinnisrr/public_html/volocian/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #2 /home/macinnisrr/public_html/volocian/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /home/macinnisrr/public_html/volocian/wp-content/plugins/users-ultra/xooclasses/xoo.userultra.login.php(302): do_action(‘wp_login’, ‘lcqa7w’) #4 /home/macinnisrr/public_html/volocian/wp-content/plugins/users-ultra/xooclasses/xoo.userultra.login.php(154): XooUserLogin->handle() #5 /home/macinnisrr/public_html/volocian/wp-includes/class-wp-hook.php(286): XooUserLogin->handle_i in /home/macinnisrr/public_html/volocian/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1716

    Note that I don’t get this error and everything works as expected when I log in as a regular user.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Plugins Area

    (@usersultra)

    @macinnisrr,

    Thank you for your post.

    I guess, that’s not an issue with php 7.1.

    Actually, this is the error displayed:

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function wc_maybe_store_user_agent(), 1 passed in

    What version of WooCommerce are you running?

    Hi There,

    Just wanted to share that we have the same error coming from Woocommece, running on PHP 7.1 and Ubuntu 16.4 and wp 4.9.5.

    [php7:error] [pid 26881] [client 172.31.34.54:29681] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function wc_maybe_store_user_agent(), 1 passed in /home/ubuntu/wordpress/wp-includes/class-wp-hook.php on line 286 and exactly 2 expected in /home/ubuntu/wordpress/wp-content/plugins/woocommerce/includes/wc-core-functions.php:1733\nStack trace:\n#0 /home/ubuntu/wordpress/wp-includes/class-wp-hook.php(286):

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Admin Redirect Broken with Woocommerce and php 7.1’ is closed to new replies.