Hi, ive been running the ATUM PO system for over 130 POs on the free version (I pay for export pro), it has always worked flawlessly until now and is integral to our business!
For the last two days, when I update the PO status to received, and press update, it throws the following error. It is such a big error that wordpress sends a "your site has an error" email.
Once I refresh the site and go and look what happened, it looks like a few products have been updated - but most have not have their stock updated.
Any ideas on what to do?
Thanks Travis
Fatal error: Uncaught Exception: Invalid product.
in /var/www/html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php on line 173
Call stack:
WC_Product_Data_Store_CPT::read()
wp-content/plugins/woocommerce/includes/class-wc-data-store.php:159
WC_Data_Store::read()
wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php:138
WC_Product::construct()
wp-content/plugins/woocommerce-product-bundles/includes/class-wc-product-bundle.php:138
WC_Product_Bundle::construct()
wp-content/plugins/woocommerce-product-bundles/includes/admin/meta-boxes/class-wc-pb-meta-box-product-data.php:224
WC_PB_Meta_Box_Product_Data::bundle_type_options()
wp-includes/class-wp-hook.php:324
WP_Hook::apply_filters()
wp-includes/plugin.php:205
apply_filters()
wp-content/plugins/woocommerce/includes/tracks/events/class-wc-products-tracking.php:255
WC_Products_Tracking::get_possible_product_type_options_ids()
wp-content/plugins/woocommerce/includes/tracks/events/class-wc-products-tracking.php:272
WC_Products_Tracking::get_product_type_options()
wp-content/plugins/woocommerce/includes/tracks/events/class-wc-products-tracking.php:321
WC_Products_Tracking::track_product_published()
wp-includes/class-wp-hook.php:324
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:348
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:282
WC_Product_Data_Store_CPT::update()
wp-content/plugins/woocommerce/includes/class-wc-data-store.php:196
WC_Data_Store::update()
wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php:1432
WC_Product::save()
wp-content/plugins/woocommerce/includes/wc-stock-functions.php:56
wc_update_product_stock()
wp-content/plugins/atum-stock-manager-for-woocommerce/classes/PurchaseOrders/PurchaseOrders.php:939
Atum\PurchaseOrders\PurchaseOrders::change_stock_levels()
wp-content/plugins/atum-stock-manager-for-woocommerce/classes/PurchaseOrders/PurchaseOrders.php:885
Atum\PurchaseOrders\PurchaseOrders::maybe_increase_stock_levels()
wp-includes/class-wp-hook.php:324
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:348
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Components/AtumOrders/Models/AtumOrderModel.php:1033
Atum\C\A\M\AtumOrderModel::process_status()
wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Components/AtumOrders/Models/AtumOrderModel.php:948
Atum\C\A\M\AtumOrderModel::save()
wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Components/AtumOrders/Models/AtumOrderModel.php:917
Atum\C\A\M\AtumOrderModel::update_taxes()
wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Components/AtumOrders/Models/AtumOrderModel.php:813
Atum\C\A\M\AtumOrderModel::save_order_items()
wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Components/AtumOrders/Models/AtumOrderModel.php:691
Atum\C\A\M\AtumOrderModel::save_posted_order_items()
wp-content/plugins/atum-stock-manager-for-woocommerce/classes/PurchaseOrders/PurchaseOrders.php:269
Atum\PurchaseOrders\PurchaseOrders::save_meta_boxes()
wp-includes/class-wp-hook.php:326
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:348
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-includes/post.php:4880
wp_insert_post()
wp-includes/post.php:4993
wp_update_post()
wp-admin/includes/post.php:453
edit_post()
wp-admin/post.php:227
Query Monitor