• We’re getting Uncaught TypeErrors during checkout with Svea for WC 2.6.5 (WP 6.4.3, WC 8.6.1). This causes orders timing out to status cancelled.

    Uncaught TypeError:
    Svea_Checkout_For_Woocommerce\Webhook_Handler::get_order_by_svea_id():
    Argument #1 ($svea_order_id) must be of type int, null given,
    called in /home/wp-content/plugins/svea-checkout-for-woocommerce/inc/WC_Gateway_Svea_Checkout.php on line 1295
    and defined in /home/wp-content/plugins/svea-checkout-for-woocommerce/inc/Webhook_Handler.php:455
    
    CONTEXT:
    {
    	"error":{
    		"type":1,
    		"file":"\/home\/wp-content\/plugins\/svea-checkout-for-woocommerce\/inc\/Webhook_Handler.php",
    		"line":455
    	},
    	"backtrace":[
    		"",
    		"#0 \/home\/wp-content\/plugins\/svea-checkout-for-woocommerce\/inc\/WC_Gateway_Svea_Checkout.php(1295): Svea_Checkout_For_Woocommerce\\Webhook_Handler::get_order_by_svea_id()",
    		"#1 \/home\/wp-content\/plugins\/woocommerce\/includes\/class-wc-checkout.php(1058): Svea_Checkout_For_Woocommerce\\WC_Gateway_Svea_Checkout->process_payment()",
    		"#2 \/home\/wp-content\/plugins\/woocommerce\/includes\/class-wc-checkout.php(1287): WC_Checkout->process_order_payment()",
    		"#3 \/home\/wp-content\/plugins\/woocommerce\/includes\/class-wc-ajax.php(508): WC_Checkout->process_checkout()",
    		"#4 \/home\/wp-includes\/class-wp-hook.php(324): WC_AJAX::checkout()",
    		"#5 \/home\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters()",
    		"#6 \/home\/wp-includes\/plugin.php(517): WP_Hook->do_action()",
    		"#7 \/home\/wp-content\/plugins\/woocommerce\/includes\/class-wc-ajax.php(96): do_action()",
    		"#8 \/home\/wp-includes\/class-wp-hook.php(324): WC_AJAX::do_wc_ajax()",
    		"#9 \/home\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters()",
    		"#10 \/home\/wp-includes\/plugin.php(517): WP_Hook->do_action()",
    		"#11 \/home\/wp-includes\/template-loader.php(13): do_action()",
    		"#12 \/home\/wp-blog-header.php(19): require_once('\/home\/tbshopen\/...')",
    		"#13 \/home\/index.php(17): require('\/home\/tbshopen\/...')",
    		"#14 {main}",
    		"thrown"
    	]
    }
    • This topic was modified 7 months, 4 weeks ago by Oskar Modig. Reason: code block formatting
Viewing 1 replies (of 1 total)
  • Plugin Author The Generation

    (@thegeneration)

    Hi,

    We’ll address that issue in the upcoming release 2.7.0 which will be released today or tomorrow.

    Best regards

Viewing 1 replies (of 1 total)
  • The topic ‘Uncaught TypeError’ is closed to new replies.