• Resolved DamirCalusic

    (@webkreativ)


    Following error occurs when logged in and viewing the cart page with items:

    [11-Apr-2017 22:24:32 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_user_id() on boolean in /var/www/xxxxxx.se/html/xxxxxx/plugins/woocommerce/includes/wc-user-functions.php:290
    Stack trace:
    #0 /var/www/xxxxxx.se/html/wp-includes/class-wp-hook.php(300): wc_customer_has_capability(Array, Array, Array)
    #1 /var/www/xxxxxx.se/html/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array)
    #2 /var/www/xxxxxx.se/html/wp-includes/class-wp-user.php(743): apply_filters('user_has_cap', Array, Array, Array, Object(WP_User))
    #3 /var/www/xxxxxx.se/html/wp-includes/capabilities.php(530): WP_User->has_cap('cancel_order', 0)
    #4 /var/www/xxxxxx.se/html/xxxxxx/plugins/woocommerce/includes/class-wc-form-handler.php(639): current_user_can('cancel_order', 0)
    #5 /var/www/xxxxxx.se/html/wp-includes/class-wp-hook.php(298): WC_Form_Handler::cancel_order('')
    #6 /var/www/xxxxxx.se/html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)
    #7 /var/www/xxxxxx.se/html/wp-includes/plugin.php(453): WP_Hoo in /var/www/xxxxxx.se/html/xxxxxx/plugins/woocommerce/includes/wc-user-functions.php on line 290
    

    It works when logged out.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal PHP Error’ is closed to new replies.