CRITICAL Uncaught Error: Call to a member function get_token()
-
This error appears periodically in the woocommerce logs. With what it can be connected?
2023-10-19T15:40:52+00:00 CRITICAL Uncaught Error: Call to a member function get_token() on null in /var/www/html/wp-content/plugins/woocommerce-square/includes/Framework/PaymentGateway/Payment_Gateway_Direct.php:574 Stack trace: #0 /var/www/html/wp-content/plugins/woocommerce-square/includes/Gateway.php(334): WooCommerce\Square\Framework\PaymentGateway\Payment_Gateway_Direct->get_order() #1 /var/www/html/wp-content/plugins/woocommerce-square/includes/Framework/PaymentGateway/Payment_Gateway_Direct.php(280): WooCommerce\Square\Gateway->get_order() #2 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1050): WooCommerce\Square\Framework\PaymentGateway\Payment_Gateway_Direct->process_payment() #3 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1279): WC_Checkout->process_order_payment() #4 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(508): WC_Checkout->process_checkout() #5 /var/www/html/wp-includes/class-wp-hook.php(310): WC_AJAX::checkout() #6 /var/www/html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #7 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action() #8 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action() #9 /var/www/html/wp-includes/class-wp-hook.php(310): WC_AJAX::do_wc_ajax() #10 /var/www/html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #11 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action() #12 /var/www/html/wp-includes/template-loader.php(13): do_action() #13 /var/www/html/wp-blog-header.php(19): require_once(‘…’) #14 /var/www/html/index.php(17): require(‘…’) #15 {main} thrown in /var/www/html/wp-content/plugins/woocommerce-square/includes/Framework/PaymentGateway/Payment_Gateway_Direct.php on line 574
Ver. wp – 6.3.2
Ver. woocommerce – 8.2.1
Ver. Squre – 4.2.2
The topic ‘CRITICAL Uncaught Error: Call to a member function get_token()’ is closed to new replies.
