Hi,
With v1.6.5 of this plugin if I sign up for notifications on a product variation and then I try to edit the product, I get a critical error and I am unable to edit the product until I remove the notification from /my-account/
Here is the error log (with sensitive info removed)
2023-10-31T11:22:01+00:00 CRITICAL Uncaught Error: Call to undefined function wc_print_notice() in /XXX/public/wp-content/plugins/woocommerce-back-in-stock-notifications/templates/single-product/back-in-stock-registered.php:26
Stack trace:
#0 /XXX/public/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include()
#1 /XXX/public/wp-content/plugins/woocommerce-back-in-stock-notifications/includes/class-wc-bis-product.php(352): wc_get_template(‘single-product/…’, Array, false, ‘/XXX…’)
#2 /XXX/public/wp-content/plugins/woocommerce-back-in-stock-notifications/includes/class-wc-bis-product.php(267): WC_BIS_Product->display_form(Object(WC_Product_Variation))
#3 /XXX in /XXX/public/wp-content/plugins/woocommerce-back-in-stock-notifications/templates/single-product/back-in-stock-registered.php on line 26
Open
Last updated: October 31, 2023
Log in to comment on this feature request.
Hey Jimmy,
Thank you for sharing this error with us!
We tried to replicate this issue by following the steps you shared, but we were still able to edit the Variable Product even after signing up for an out-of-stock variation.
We’d love to help you get to the bottom of this issue and figure out if there is something that needs to be fixed on our side. Could you please submit a new support request about this (via https://woocommerce.com/my-account/contact-support/) so we can have a look in more detail? Typically fatal error reports, like this one, are prioritized. In your e-mail to us, please include the complete stack trace of the error you see in your logs.
Looking forward to helping you with this!