E_ERROR while trying to set order status from processing to completed
-
I was sending orders and marking them processed and halfway through when I tried to update an order status from processed to completed I got an error page. And now I get an error page for every order I try to change status. The order that the error first happened on had no products with stock dependencies.
WordPress version 6.3.2
Woocommerce version 8.2.0
Current plugin: Stock Dependencies for WooCommerce (version 1.5)
PHP version 7.4.33
Here is the stack trace from my email:
An error of type E_ERROR was caused in line 270 of the file /home/tieraf7f/public_html/wp-content/plugins/wc-stock-dependencies/admin.php. Error message: Uncaught Error: Call to a member function get_id() on bool in /home/tieraf7f/public_html/wp-content/plugins/wc-stock-dependencies/admin.php:270
Stack trace:
#0 /home/tieraf7f/public_html/wp-content/plugins/wc-stock-dependencies/admin.php(302): StockDependenciesForWooCommerceAdmin\Admin->get_stock_dependency_settings(false)
#1 /home/tieraf7f/public_html/wp-content/plugins/wc-stock-dependencies/admin.php(501): StockDependenciesForWooCommerceAdmin\Admin->has_stock_dependencies(false)
#2 /home/tieraf7f/public_html/wp-content/plugins/wc-stock-dependencies/admin.php(581): StockDependenciesForWooCommerceAdmin\Admin->reduce_order_stock(Object(Automattic\WooCommerce\Admin\Overrides\Order))
#3 /home/tieraf7f/public_html/wp-includes/class-wp-hook.php(310): StockDependenciesForWooCommerceAdmin\Admin->before_save_order_items(15519, Array)
#4 /home/tieraf7f/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(”, Array)
#5 /home/tieraf7f/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#
- The topic ‘E_ERROR while trying to set order status from processing to completed’ is closed to new replies.