Error coming after v3.8.0 update
-
Hi there,
We are the developers of funnelkit and developed an integration with square gateway for the upsell features few years ago.
One of our clients reported an error causing checkout to break when paying using exiting saved payment method. the error backtrace is2023-05-27T18:47:10+00:00 CRITICAL Uncaught Error: Call to a member function get_token() on null in /home/497572.cloudwaysapps.com/uzjmysrrjs/public_html/wp-content/plugins/woocommerce-square/includes/Framework/PaymentGateway/Payment_Gateway_Direct.php:476
Stack trace: 0 /home/497572.cloudwaysapps.com/uzjmysrrjs/public_html/wp-content/plugins/woocommerce-square/includes/Gateway.php(276): WooCommerce\Square\Framework\PaymentGateway\Payment_Gateway_Direct->get_order() 1 /home/497572.cloudwaysapps.com/uzjmysrrjs/public_html/wp-content/plugins/funnel-builder-pro/modules/one-click-upsells/gateways/class-wfocu-gateway-integration-square-credit-card.php(650): WooCommerce\Square\Gateway->get_order() 2 /home/497572.cloudwaysapps.com/uzjmysrrjs/public_html/wp-includes/class-wp-hook.php(308): WFOCU_Gateway_Integration_Square_Credit_Card->add_square_token() 3 /home/497572.cloudwaysapps.com/uzjmysrrjs/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() 4 /home/497572.cloudwaysapps.com/uzjmysrrjs/public_html/wp-content/plugins/woocommerce-square/includes/Framework/PaymentGateway/Payment_Gateway_Direct.php(271): apply_filters() 5 /home/497572.cloudwaysapps.com/uzjmysrrjs/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1050): WooCommerce\Square\Framework\PaymentGateway\Payment_Gateway_Direct->process_payment() 6 /home/497572.cloudwaysapps.com/uzjmysrrjs/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1279): WC_Checkout->process_order_payment() 7 /home/497572.cloudwaysapps.com/uzjmysrrjs/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(485): WC_Checkout->process_checkout() 8 /home/497572.cloudwaysapps.com/uzjmysrrjs/public_html/wp-includes/class-wp-hook.php(308): WC_AJAX::checkout() 9 /home/497572.cloudwaysapps.com/uzjmysrrjs/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() 10 /home/497572.cloudwaysapps.com/uzjmysrrjs/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 11 /home/497572.cloudwaysapps.com/uzjmysrrjs/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action() 12 /home/497572.cloudwaysapps.com/uzjmysrrjs/public_html/wp-includes/class-wp-hook.php(308): WC_AJAX::do_wc_ajax() 13 /home/497572.cloudwaysapps.com/uzjmysrrjs/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() 14 /home/497572.cloudwaysapps.com/uzjmysrrjs/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 15 /home/497572.cloudwaysapps.com/uzjmysrrjs/public_html/wp-includes/template-loader.php(13): do_action() 16 /home/497572.cloudwaysapps.com/uzjmysrrjs/public_html/wp-blog-header.php(19): require_once('/home/497572.cl…') 17 /home/497572.cloudwaysapps.com/uzjmysrrjs/public_html/index.php(17): require('/home/497572.cl…') 18 {main} thrown in /home/497572.cloudwaysapps.com/uzjmysrrjs/public_html/wp-content/plugins/woocommerce-square/includes/Framework/PaymentGateway/Payment_Gateway_Direct.php on line 476while this error seems to be coming without our codebase but the error is actually coming from the method WooCommerce\Square\Gateway->get_order(), an there is no role the upsell code causing this error.
Can you check and find out what would be causing this?
We checked the token migration also introduced in recent versions so if it could be the case of migration failing.
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Error coming after v3.8.0 update’ is closed to new replies.