Uncaught Error on the order page when product has been removed
-
1. Create an order with a product
2. Delete the product that was purchased in the previous order
3. Open this orderThe following error will occur:
Uncaught Error: Call to a member function get_id() on bool in /usr/local/var/www/wordpress/wp-content/plugins/license-manager-for-woocommerce/includes/integrations/woocommerce/Order.php on line 326
showOrderedLicenses()
wp-includes/class-wp-hook.php:287
apply_filters()
wp-includes/class-wp-hook.php:311
do_action()
wp-includes/plugin.php:478
do_action()
wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-item.php:45
include()
wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-items.php:62
include()
wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-items.php:41
output()
wp-admin/includes/template.php:1345
do_meta_boxes()
wp-admin/edit-form-advanced.php:677
require()
wp-admin/post.php:206
- The topic ‘Uncaught Error on the order page when product has been removed’ is closed to new replies.