• Resolved twowheeler

    (@twowheeler)


    We have ticket purchases failing with the following errors in the log. The error is referencing the subscription functions, but we do not offer subscriptions for anything. Any suggestions?

    CRITICAL Uncaught Error: Call to a member function is_type() on boolean in /home/dhwpuser/wordpress/wp-content/plugins/woo-payment-gateway/includes/subscriptions/wcs-braintree-functions.php:222
    Stack trace:
    #0 /home/dhwpuser/wordpress/wp-content/plugins/woo-payment-gateway/includes/subscriptions/class-wc-braintree-subscriptions-cart.php(60): wcs_braintree_product_is_subscription(false)
    #1 /home/dhwpuser/wordpress/wp-includes/class-wp-hook.php(287): WC_Braintree_Subscriptions_Cart->add_to_cart_validation(false, 10809, 1)
    #2 /home/dhwpuser/wordpress/wp-includes/plugin.php(206): WP_Hook->apply_filters(false, Array)
    #3 /home/dhwpuser/wordpress/wp-content/plugins/seating-charts/seating-charts.php(2266): apply_filters('woocommerce_add...', false, 10809, 1)
    #4 /home/dhwpuser/wordpress/wp-content/plugins/seating-charts/seating-charts.php(2307): TC_Seat_Chart->tc_validate_woo_seat_availability(true)
    #5 /home/dhwpuser/wordpress/wp-includes/class-wp-hook.php(287): TC_Seat_Chart->tc_add_seat_to_cart_woo('')
    #6 /home/dhwpuser/word in /home/dhwpuser/wordpress/wp-content/plugins/woo-payment-gateway/includes/subscriptions/wcs-braintree-functions.php on line 222

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @twowheeler,

    In the Braintree plugin settings navigate to the Advanced Settings tab > Subscription Settings then click the checkbox to disable the plugin’s subscription functionality then save and this error will go away.

    I’m not sure why you’re TC_Seat_Chart plugin is passing a boolean (it shouldn’t) but my above instructions will ensure you don’t get that error.

    Kind Regards,

    Thread Starter twowheeler

    (@twowheeler)

    Awesome, thanks for your quick reply.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Critical Uncaught Error in Braintree for WC’ is closed to new replies.