You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In subscription-totals-table.php we create a product object here
The is filtered by woocommerce_subscriptions_order_item_product, and we check the status of the object before using it here
However, it is subsequently used without a check here
On rare occasions, where the value has been filtered, such as in 9093977-zd-a8c, this can result in a fatal error.
Uncaught Error: Call to a member function get_purchase_note() on bool in /www/[redacted]/public/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/templates/myaccount/subscription-totals-table.php:79
To Reproduce
Return false on woocommerce_subscriptions_order_item_product
Check the view subscription page in My Account
Actual behavior
Improper use of the filter can have unexpected results.
Product impact
[ yes] Does this issue affect WooCommerce Subscriptions? yes/no/tbc, add issue ref
[ no] Does this issue affect WooCommerce Payments? yes/no/tbc, add issue ref
The text was updated successfully, but these errors were encountered:
Describe the bug
In
subscription-totals-table.php
we create a product object hereThe is filtered by
woocommerce_subscriptions_order_item_product
, and we check the status of the object before using it hereHowever, it is subsequently used without a check here
On rare occasions, where the value has been filtered, such as in 9093977-zd-a8c, this can result in a fatal error.
To Reproduce
false
onwoocommerce_subscriptions_order_item_product
Actual behavior
Improper use of the filter can have unexpected results.
Product impact
The text was updated successfully, but these errors were encountered: