Error when Testing New User Role
-
Hello,
I’m running WordPress 6.1.1, and using PHP 7.4.
I’ve installed PublishPress’s Capabilities and Permissions plugins, and have followed the instructions on setting up roles as per this youtube video (https://www.youtube.com/watch?v=YmNLROw_EUE&t=320s).
I’ve added a new user, created a new role for that user, and am now ready to test the environment that this new user will see. When I click on the “Test this user” link, that’s directly underneath the new user that I’ve added, I get this error message:
Fatal error: Uncaught Error: Call to undefined function wc_empty_cart() in /home/customer/www/sevenfold.school/public_html/wp-content/plugins/woocommerce/includes/class-wc-session-handler.php:372 Stack trace: #0 /home/customer/www/sevenfold.school/public_html/wp-content/plugins/woocommerce/includes/class-wc-session-handler.php(363): WC_Session_Handler->forget_session() #1 /home/customer/www/sevenfold.school/public_html/wp-content/plugins/woocommerce/includes/class-wc-session-handler.php(99): WC_Session_Handler->destroy_session() #2 /home/customer/www/sevenfold.school/public_html/wp-content/plugins/woocommerce/includes/class-wc-session-handler.php(71): WC_Session_Handler->init_session_cookie() #3 /home/customer/www/sevenfold.school/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(862): WC_Session_Handler->init() #4 /home/customer/www/sevenfold.school/public_html/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-fraud-service.php(131): WooCommerce->initialize_session() #5 /home/cust in /home/customer/www/sevenfold.school/public_html/wp-content/plugins/woocommerce/includes/class-wc-session-handler.php on line 372
Can someone tell me what this error means, and what I need to do to fix this error?
The page I need help with: [log in to see the link]
- The topic ‘Error when Testing New User Role’ is closed to new replies.