Error when creating an order in the admin
-
The latest version of the plugin (Upsell version 2.2.6 combined to Upsell Pro version 2.1.8) with WooCommerce version 8.0.3 and WordPress 6.3.1, running on PHP 7.4.33 results in the following error when an order is created from the admin:
[29-Aug-2023 20:59:00 UTC] PHP Fatal error: ?Uncaught Error: Call to a member function set() on null in /home/xxxxxx/public_html/wp-content/plugins/upsell-order-bump-offer-for-woocommerce/public/class-upsell-order-bump-offer-for-woocommerce-public.php:1999
Stack trace:
#0 /home/xxxxxx/public_html/wp-includes/class-wp-hook.php(312): Upsell_Order_Bump_Offer_For_Woocommerce_Public->wps_custom_get_current_order_id(60039)
#1 /home/xxxxxx/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array)
#2 /home/xxxxxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#3 /home/xxxxxx/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php(194): do_action('woocommerce_new...', 60039, Object(Automattic\WooCommerce\Admin\Overrides\Order))
#4 /home/xxxxxx/public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(196): WC_Order_Data_Store_CPT->update(Object(Automattic\WooCommerce\Admin\Overrides\Order))
#5 /home/xxxxxx/public_html/wp-content/plugins/woocommer in /home/xxxxxx/public_html/wp-content/plugins/upsell-order-bump-offer-for-woocommerce/public/class-upsell-order-bump-offer-for-woocommerce-public.php on line 1999The order is properly created, and refreshing the page shows it.
It only seems to affect orders created from the admin.
- The topic ‘Error when creating an order in the admin’ is closed to new replies.