Fatal Error on version 4.2.2
-
After upgrading to TaxJar version 4.2.2 we started getting fatal errors in our post editor for various custom post types which prevented ACF fields from showing in the post editor as well as other conflicts with other plugins. Rolling back to version 4.2.1 fixed it. Below is from our error log.
// Error LogCurrent plugin: TaxJar – Sales Tax Automation for WooCommerce (version 4.2.2)
PHP version 8.0.30Error Details
=============
An error of type E_ERROR was caused in line 45 of the file /home/website/public_html/wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/admin/class-order-meta-box.php. Error message: Uncaught TypeError: TaxJar\Order_Meta_Box::get_order_tax_calculation_metadata(): Argument #1 ($order) must be of type WC_Order, bool given, called in /home/website/public_html/wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/admin/class-order-meta-box.php on line 32 and defined in /home/website/public_html/wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/admin/class-order-meta-box.php:45
Stack trace:
#0 /home/website/public_html/wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/admin/class-order-meta-box.php(32): TaxJar\Order_Meta_Box::get_order_tax_calculation_metadata(false)
#1 /home/website/public_html/wp-admin/includes/template.php(1456): TaxJar\Order_Meta_Box::output(Object(WP_Post), Array)
#2 /home/website/public_html/wp-admin/includes/post.php(2385): do_meta_boxes(Object(WP_Screen), ‘normal’, Object(WP_Post))
#3 /home/website/public_html/wp-admin/edit-form-blocks.php(319): the_block_editor_meta_boxes()
#4 /home/website/public_html/wp-admin/post-new.php(72): require(‘/home/website…’)
#5 {main}
thrown
- You must be logged in to reply to this topic.