Plugin version: 3.2.5
When cart has a subscription product (so no shipping) then file inc/compat/plugins/compat-plugin-woocommerce-subscriptions.php
throws two errors:
- PHP Warning: Undefined variable $package_review_text_lines in inc/compat/plugins/compat-plugin-woocommerce-subscriptions.php on line 614
- PHP Fatal error: Uncaught TypeError: array_merge(): Argument #2 must be of type array, null given in inc/compat/plugins/compat-plugin-woocommerce-subscriptions.php:532
get_packages_review_text_lines()
function does not correctly initialize $package_review_text_lines
variable, so when it is undefined, the subsequential function add_substep_text_lines_shipping_method()
fails because it expects it to be an array.