Fatal Error: Uncaught TypeError causing failed payments on all orders
-
Beginning about 9 hours ago, our
fatal-errorslog is filled withCritical Uncaught TypeErrors. This is causing ALL regular and subscription payments to fail. Essentially, no one can currently order from our site. I’ve included the error message below. Additionally, thefailed-scheduled-actionslog also has errors specific to the subscription renewal payments that seem to be related to the fatal errors. That error message is included below as well.No changes have been made to our site since updating plugins 2 days ago (approx. 9am ET on January 27). The TaxJar plugin did not have any updates at that time. Order payments were processed without issue for the next approx. 38 hours without issue until these errors popped up overnight.
Here is the entry from
fatal-errorslog:Critical Uncaught TypeError: array_push(): Argument #1 ($array) must be of type array, null given in /chroot/local/threechi/3chi.com/wordpress/wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/class-wc-taxjar-nexus.php:63
Additional context
{
"error": {
"type": 1,
"file": "/chroot/local/threechi/3chi.com/wordpress/wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/TaxCalculation/class-cart-tax-calculation-result-data-store.php",
"line": 42
},
"remote-logging": true,
"backtrace": [
"",
"#0 /chroot/local/threechi/3chi.com/wordpress/wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/class-wc-taxjar-nexus.php(63): array_push(NULL, Object(stdClass))",
"#1 /chroot/local/threechi/3chi.com/wordpress/wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/TaxCalculation/class-tax-calculation-validator.php(94): WC_Taxjar_Nexus->has_nexus_check('US', 'TX')",
"#2 /chroot/local/threechi/3chi.com/wordpress/wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/TaxCalculation/class-tax-calculation-validator.php(78): TaxJar\WooCommerce\TaxCalculation\Tax_Calculation_Validator->is_out_of_nexus_areas(Object(TaxJar\Tax_Request_Body))",
"#3 /chroot/local/threechi/3chi.com/wordpress/wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/TaxCalculation/class-tax-calculation-validator.php(50): TaxJar\WooCommerce\TaxCalculation\Tax_Calculation_Validator->validate_nexus(Object(TaxJar\Tax_Request_Body))",
"#4 /chroot/local/threechi/3chi.com/wordpress/wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/TaxCalculation/class-tax-calculator.php(208): TaxJar\WooCommerce\TaxCalculation\Tax_Calculation_Validator->validate(Object(TaxJar\Tax_Request_Body))",
"#5 /chroot/local/threechi/3chi.com/wordpress/wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/TaxCalculation/class-tax-calculator.php(186): TaxJar\Tax_Calculator->validate()",
"#6 /chroot/local/threechi/3chi.com/wordpress/wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/class-taxjar-tax-calculation.php(68): TaxJar\Tax_Calculator->maybe_calculate_and_apply_tax()",
"#7 /chroot/local/threechi/3chi.com/wordpress/wp-includes/class-wp-hook.php(324): TaxJar_Tax_Calculation->maybe_calculate_cart_taxes(Object(WC_Cart))",
"#8 /chroot/local/threechi/3chi.com/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)",
"#9 /chroot/local/threechi/3chi.com/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action(Array)",
"#10 /chroot/local/threechi/3chi.com/wordpress/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1411): do_action('woocommerce_aft...', Object(WC_Cart))",
"#11 /chroot/local/threechi/3chi.com/wordpress/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-cart.php(372): WC_Cart->calculate_totals()",
"#12 /chroot/local/threechi/3chi.com/wordpress/wp-includes/class-wp-hook.php(324): WC_Subscriptions_Cart::calculate_subscription_totals(30.95, Object(WC_Cart))",
"#13 /chroot/local/threechi/3chi.com/wordpress/wp-includes/plugin.php(205): WP_Hook->apply_filters(30.95, Array)",
"#14 /chroot/local/threechi/3chi.com/wordpress/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(884): apply_filters('woocommerce_cal...', 30.95, Object(WC_Cart))",
"#15 /chroot/local/threechi/3chi.com/wordpress/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(153): WC_Cart_Totals->calculate_totals()",
"#16 /chroot/local/threechi/3chi.com/wordpress/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(141): WC_Cart_Totals->calculate()",
"#17 /chroot/local/threechi/3chi.com/wordpress/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1409): WC_Cart_Totals->__construct(Object(WC_Cart))",
"#18 /chroot/local/threechi/3chi.com/wordpress/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(355): WC_Cart->calculate_totals()",
"#19 /chroot/local/threechi/3chi.com/wordpress/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(70): WC_Shortcode_Checkout::checkout()",
"#20 /chroot/local/threechi/3chi.com/wordpress/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(72): WC_Shortcode_Checkout::output(Array)",
"#21 /chroot/local/threechi/3chi.com/wordpress/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(95): WC_Shortcodes::shortcode_wrapper(Array, Array)",
"#22 /chroot/local/threechi/3chi.com/wordpress/wp-includes/shortcodes.php(434): WC_Shortcodes::checkout(Array, '', 'woocommerce_che...')",
"#23 [internal function]: do_shortcode_tag(Array)",
"#24 /chroot/local/threechi/3chi.com/wordpress/wp-includes/shortcodes.php(273): preg_replace_callback('/\\[(\\[?)(woocom...', 'do_shortcode_ta...', '[woocommerce_ch...')",
"#25 /chroot/local/threechi/3chi.com/wordpress/wp-includes/class-wp-hook.php(324): do_shortcode('[woocommerce_ch...')",
"#26 /chroot/local/threechi/3chi.com/wordpress/wp-includes/plugin.php(205): WP_Hook->apply_filters('[woocommerce_ch...', Array)",
"#27 /chroot/local/threechi/3chi.com/wordpress/wp-includes/post-template.php(256): apply_filters('the_content', '<!-- wp:flatsom...')",
"#28 /chroot/local/threechi/3chi.com/wordpress/wp-content/themes/flatsome/woocommerce/checkout/layouts/checkout.php(18): the_content()",
"#29 /chroot/local/threechi/3chi.com/wordpress/wp-includes/template.php(812): require('/chroot/local/t...')",
"#30 /chroot/local/threechi/3chi.com/wordpress/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template('/chroot/local/t...', false)",
"#31 /chroot/local/threechi/3chi.com/wordpress/wp-content/themes/flatsome/page-checkout.php(9): wc_get_template_part('checkout/layout...', '')",
"#32 /chroot/local/threechi/3chi.com/wordpress/wp-includes/template-loader.php(106): include('/chroot/local/t...')",
"#33 /chroot/local/threechi/3chi.com/wordpress/wp-blog-header.php(19): require_once('/chroot/local/t...')",
"#34 /chroot/local/threechi/3chi.com/wordpress/index.php(17): require('/chroot/local/t...')",
"#35 {main}",
"",
"Next TypeError: TaxJar\Cart_Tax_Calculation_Result_Data_Store::update(): Argument #1 ($calculation_result) must be of type TaxJar\Tax_Calculation_Result, null given, called in /chroot/local/threechi/3chi.com/wordpress/wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/TaxCalculation/class-tax-calculator.php on line 193 and defined in /chroot/local/threechi/3chi.com/wordpress/wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/TaxCalculation/class-cart-tax-calculation-result-data-store.php:42",
""
]
}Here is the entry from the
failed-scheduled-actionslog:Error scheduled action 49328109 (subscription payment) failed to finish processing due to the following exception: TaxJar\Order_Tax_Calculation_Result_Data_Store::update(): Argument #1 ($calculation_result) must be of type TaxJar\Tax_Calculation_Result, null given, called in /chroot/home/threechi/3chi.com/html/wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/TaxCalculation/class-tax-calculator.php on line 193 in /chroot/home/threechi/3chi.com/html/wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/TaxCalculation/class-order-tax-calculation-result-data-store.php:42
Additional context
{
"action_args": "subscription_id: 2785413",
"error_trace": "#0 /chroot/home/threechi/3chi.com/html/wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/TaxCalculation/class-tax-calculator.php(193): TaxJar\Order_Tax_Calculation_Result_Data_Store->update(NULL)n#1 /chroot/home/threechi/3chi.com/html/wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/class-taxjar-tax-calculation.php(241): TaxJar\Tax_Calculator->maybe_calculate_and_apply_tax()n#2 /chroot/home/threechi/3chi.com/html/wp-includes/class-wp-hook.php(324): TaxJar_Tax_Calculation->calculate_renewal_order_totals(Object(Automattic\WooCommerce\Admin\Overrides\Order), Object(WC_Subscription), 'renewal_order')n#3 /chroot/home/threechi/3chi.com/html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Object(Automattic\WooCommerce\Admin\Overrides\Order), Array)n#4 /chroot/home/threechi/3chi.com/html/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/wcs-order-functions.php(239): apply_filters('wcs_new_order_c...', Object(Automattic\WooCommerce\Admin\Overrides\Order), Object(WC_Subscription), 'renewal_order')n#5 /chroot/home/threechi/3chi.com/html/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/wcs-renewal-functions.php(29): wcs_create_order_from_subscription(Object(WC_Subscription), 'renewal_order')n#6 /chroot/home/threechi/3chi.com/html/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-manager.php(143): wcs_create_renewal_order(Object(WC_Subscription))n#7 /chroot/home/threechi/3chi.com/html/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-manager.php(116): WC_Subscriptions_Manager::process_renewal(2785413, 'active', 'Subscription re...')n#8 /chroot/home/threechi/3chi.com/html/wp-includes/class-wp-hook.php(324): WC_Subscriptions_Manager::prepare_renewal(2785413)n#9 /chroot/home/threechi/3chi.com/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)n#10 /chroot/home/threechi/3chi.com/html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)n#11 /chroot/home/threechi/3chi.com/html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/actions/ActionScheduler_Action.php(86): do_action_ref_array('woocommerce_sch...', Array)n#12 /chroot/home/threechi/3chi.com/html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php(102): ActionScheduler_Action->execute()n#13 /chroot/home/threechi/3chi.com/html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_QueueRunner.php(188): ActionScheduler_Abstract_QueueRunner->process_action(49328109, 'WP Cron')n#14 /chroot/home/threechi/3chi.com/html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_QueueRunner.php(158): ActionScheduler_QueueRunner->do_batch(25, 'WP Cron')n#15 /chroot/home/threechi/3chi.com/html/wp-includes/class-wp-hook.php(324): ActionScheduler_QueueRunner->run('WP Cron')n#16 /chroot/home/threechi/3chi.com/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)n#17 /chroot/home/threechi/3chi.com/html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)n#18 phar:///usr/local/bin/wp/vendor/wp-cli/cron-command/src/Cron_Event_Command.php(361): do_action_ref_array('action_schedule...', Array)n#19 phar:///usr/local/bin/wp/vendor/wp-cli/cron-command/src/Cron_Event_Command.php(284): Cron_Event_Command::run_event(Object(stdClass))n#20 [internal function]: Cron_Event_Command->run(Array, Array)n#21 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func(Array, Array, Array)n#22 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}(Array, Array)n#23 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(488): call_user_func(Object(Closure), Array, Array)n#24 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(436): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array)n#25 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(459): WP_CLI\Runner->run_command(Array, Array)n#26 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1284): WP_CLI\Runner->run_command_and_exit()n#27 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()n#28 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))n#29 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()n#30 phar:///usr/local/bin/wp/php/boot-phar.php(20): include('phar:///usr/loc...')n#31 /usr/local/bin/wp(4): include('phar:///usr/loc...')n#32 {main}"
}
The topic ‘Fatal Error: Uncaught TypeError causing failed payments on all orders’ is closed to new replies.