WordPress crash when WooCommerce changes order status
-
I am using Rencontre, Rencontre Preminium and WooCommerce.
Until I recently upgraded to a later version of Rencontre Premium I had no problems with the action I will describe below.
A user placed an order to subscribe to Premium Access on Rencontre.
I then went to WooCommerce->Orders.
I selcted the most recent order.
I then selected Bulk Actions->Change status to completed.
I then hit the Apply button.
Before the recent update to Recontre Premium hitting the Apply button always worked.
Now WordPress crashes. The error stack trace is given below.
Error Details
An error of type E_ERROR was caused in line 428 of the file /home/myusername/public_html/unjabbed.net/wp-content/plugins/rencontreP/rencontreP.php. Error message: Uncaught Error: Call to a member function get_sku() on bool in /home/myusername/public_html/unjabbed.net/wp-content/plugins/rencontreP/rencontreP.php:428
Stack trace: 0 /home/myusername/public_html/unjabbed.net/wp-includes/class-wp-hook.php(312): rencWooForceEmailOrder() 1 /home/myusername/public_html/unjabbed.net/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() 2 /home/myusername/public_html/unjabbed.net/wp-includes/plugin.php(517): WP_Hook->do_action() 3 /home/myusername/public_html/unjabbed.net/wp-content/plugins/woocommerce/includes/class-wc-order.php(395): do_action() 4 /home/myusername/public_html/unjabbed.net/wp-content/plugins/woocommerce/includes/class-wc-order.php(253): WC_Order->status_transition() 5 /home/myusername/public_html/unjabbed.net/wp-content/plugins/woocommerce/includes/class-wc-order.php(365): WC_Order->save() 6 /home/myusername/public_html/unjabbed.net/wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-orders.php(477): WC_Order->update_status() 7 /home/myusername/public_html/unjabbed.net/wp-includes/class-wp-hook.php(310): WC_Admin_List_Table_Orders->handle_bulk_actions() 8 /home/myusername/public_html/unjabbed.net/wp-includes/plugin.php(205): WP_Hook->apply_filters() 9 /home/myusername/public_html/unjabbed.net/wp-admin/edit.php(222): apply_filters() 10 {main}thrown
The topic ‘WordPress crash when WooCommerce changes order status’ is closed to new replies.