Fatal error being thrown when viewing orders in the admin back-end
-
Our site has the Premium version of the plugin installed. I just discovered that a fatal error is being thrown in the admin back-end when viewing an old order that contains a product bundle which no longer exists.
Here is the stack trace:
Fatal error: Uncaught Error: Call to a member function get_id() on bool in /www/doc/www.mywave.cz/www/wp-content/plugins/woo-product-bundle-premium/includes/class-woosb.php:1787 Stack trace: #0 /www/doc/www.mywave.cz/www/wp-includes/class-wp-hook.php(312): WPCleverWoosb->before_order_itemmeta(417, Object(WC_Order_Item_Product)) #1 /www/doc/www.mywave.cz/www/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(”, Array) #2 /www/doc/www.mywave.cz/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /www/doc/www.mywave.cz/www/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-item.php(43): do_action(‘woocommerce_bef…’, 417, Object(WC_Order_Item_Product), false) #4 /www/doc/www.mywave.cz/www/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-items.php(73): include(‘/www/doc/www.my…’) #5 /www/doc/www.mywave.cz/www/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-items.php(40): include(‘/www/doc/www.my…’) #6 /www/doc/www.mywave.cz/www/wp-admin/includes/template.php(1443): WC_Meta_Box_Order_Items::output(Object(WP_Post), Array) #7 /www/doc/www.mywave.cz/www/wp-admin/edit-form-advanced.php(688): do_meta_boxes(Object(WP_Screen), ‘normal’, Object(WP_Post)) #8 /www/doc/www.mywave.cz/www/wp-admin/post.php(206): require(‘/www/doc/www.my…’) #9 {main} thrown in /www/doc/www.mywave.cz/www/wp-content/plugins/woo-product-bundle-premium/includes/class-woosb.php on line 1787
You should be able to reproduce this by: 1) creating a product bundle, 2) creating an order with that bundle in it, 3) deleting the product bundle and emptying the bin, 4) then trying to view the order in the Woocommerce back-end.
Please contact me if further details are required.
Hopefully you can confirm the issue and fix it.
Regards,
Tim Weston
- The topic ‘Fatal error being thrown when viewing orders in the admin back-end’ is closed to new replies.