Admin Redirect Broken with Woocommerce and php 7.1
-
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.
- The topic ‘Admin Redirect Broken with Woocommerce and php 7.1’ is closed to new replies.