Hello,
Subscription payments scheduled actions are failing on a clients site with the following error:
“03-31-2023 @ 01:42:04 – scheduled action 50550 (subscription payment) failed to finish processing due to the following error: Uncaught Error: Call to a member function get_coupon_discount_totals() on null in /nas/content/live/**/wp-content/plugins/woo-wallee/includes/packages/coupon/class-wc-wallee-packages-coupon-discount.php:104
Stack trace:
0 /nas/content/live/**/wp-includes/class-wp-hook.php(308): WC_Wallee_Packages_Coupon_Discount::get_coupons_discount_totals_including_tax(‘GBP’)
1 /nas/content/live/**/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘GBP’, Array)
2 /nas/content/live/**/wp-content/plugins/woo-wallee/includes/packages/coupon/class-wc-wallee-packages-coupon-discount.php(118): apply_filters(‘wc_wallee_packa…’, ‘GBP’)
3 /nas/content/live/**/wp-includes/class-wp-hook.php(308): WC_Wallee_Packages_Coupon_Discount::has_cart_coupon_discounts_applied(‘GBP’)
4 /nas/content/live/**/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘GBP’, Array)
5 /nas/content/live/**/wp-content/plugins/woo-wallee/includes/class-wc-wallee-helper.php(23
03-31-2023 @ 01:42:04 – action args: subscription_id: 2090″
We are using WooCommerce 7.4.1 and the rest of the plugins are using the latest versions.
Thanks