<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>Error: Call to a member function getUid() on null

[ad_1]

Replies: 3

This is an URGENT issue. We are facing an error from the square plugin. that I will post here. please help me to fix this

01-28-2023 @ 11:17:38 - scheduled action 228411 (subscription payment) failed to finish processing due to the following error: Uncaught Error: Call to a member function getUid() on null in /nas/content/live/peakthera/wp-content/plugins/woocommerce-square/includes/Gateway/API/Requests/Orders.php:300
Stack trace: 0 /nas/content/live/peakthera/wp-content/plugins/woocommerce-square/includes/Gateway/API/Requests/Orders.php(210): WooCommerce\Square\Gateway\API\Requests\Orders->apply_taxes(Array, Object(WC_Order_Item_Product)) 1 /nas/content/live/peakthera/wp-content/plugins/woocommerce-square/includes/Gateway/API/Requests/Orders.php(71): WooCommerce\Square\Gateway\API\Requests\Orders->get_api_line_items(Object(Automattic\WooCommerce\Admin\Overrides\Order), Array, Array) 2 /nas/content/live/peakthera/wp-content/plugins/woocommerce-square/includes/Gateway/API.php(328): WooCommerce\Square\Gateway\API\Requests\Orders->set_create_order_data('0X6WBAD6947H8', Object(Automattic\WooCommerce\Admin\Overrides\Order)) 3 /nas/content/live/peakthera/wp-content/plugins/woocommerce-square/includes/Gateway.php(343): WooCommerce\Square\Gateway\API->create_order('0X6WBAD6947H8', Object(Automattic\WooCommerce\Admin\Overrides\Order)) 4 /nas/content/live/peakthera/wp-content/plugins/woocommerce-square/includes/Framework/PaymentGateway/Payment_Gateway_Direct.php(279): WooCommerce\Square\Gateway->do_transaction(Object(Automattic\WooCommerce\Admin\Overrides\Order)) 5 /nas/content/live/peakthera/wp-content/plugins/woocommerce-square/includes/Framework/PaymentGateway/Integrations/Payment_Gateway_Integration_Subscriptions.php(201): WooCommerce\Square\Framework\PaymentGateway\Payment_Gateway_Direct->process_payment(30104) 6 /nas/content/live/peakthera/wp-includes/class-wp-hook.php(308): WooCommerce\Square\Framework\PaymentGateway\Integrations\Payment_Gateway_Integration_Subscriptions->process_renewal_payment('116.33', Object(Automattic\WooCommerce\Admin\Overrides\Order)) 7 /nas/content/live/peakthera/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) 8 /nas/content/live/peakthera/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 9 /nas/content/live/peakthera/wp-content/plugins/woocommerce-subscriptions/includes/gateways/class-wc-subscriptions-payment-gateways.php(97): do_action('woocommerce_sch…', '116.33', Object(Automattic\WooCommerce\Admin\Overrides\Order)) 10 /nas/content/live/peakthera/wp-content/plugins/woocommerce-subscriptions/includes/gateways/class-wc-subscriptions-payment-gateways.php(81): WC_Subscriptions_Payment_Gateways::trigger_gateway_renewal_payment_hook(Object(Automattic\WooCommerce\Admin\Overrides\Order)) 11 /nas/content/live/peakthera/wp-includes/class-wp-hook.php(308): WC_Subscriptions_Payment_Gateways::gateway_scheduled_subscription_payment(18945) 12 /nas/content/live/peakthera/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) 13 /nas/content/live/peakthera/wp-includes/plugin.php(565): WP_Hook->do_action(Array) 14 /nas/content/live/peakthera/wp-content/plugins/woocommerce-square/vendor/woocommerce/action-scheduler/classes/actions/ActionScheduler_Action.php(22): do_action_ref_array('woocommerce_sch…', Array) 15 /nas/content/live/peakthera/wp-content/plugins/woocommerce-square/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php(65): ActionScheduler_Action->execute() 16 /nas/content/live/peakthera/wp-content/plugins/woocommerce-square/vendor/woocommerce/action-scheduler/classes/ActionScheduler_QueueRunner.php(162): ActionScheduler_Abstract_QueueRunner->process_action(228411, 'WP Cron') 17 /nas/content/live/peakthera/wp-content/plugins/woocommerce-square/vendor/woocommerce/action-scheduler/classes/ActionScheduler_QueueRunner.php(132): ActionScheduler_QueueRunner->do_batch(25, 'WP Cron') 18 /nas/content/live/peakthera/wp-includes/class-wp-hook.php(308): ActionScheduler_QueueRunner->run('WP Cron') 19 /nas/content/live/peakthera/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) 20 /nas/content/live/peakthera/wp-includes/plugin.php(565): WP_Hook->do_action(Array) 21 /nas/content/live/peakthera/wp-cron.php(188): do_action_ref_array('action_schedule…', Array) 22 {main} thrown

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer