Also, when activating the Unsubscribe-Addon, there is an additional notice:
PHP Deprecated: The function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead in [...]/wp-includes/functions.php on line 6031
-
This reply was modified 2 years, 4 months ago by
newshop.
Hello there,
Good Day!!
Could you please confirm the version of our plugin “Back In Stock Notifier for WooCommerce” you are currently using? If it’s not the latest version, we recommend updating to the latest version to see if the issue persists.
Additionally, could you please provide a screenshot of the error or more details for further analysis?
Regarding the Unsubscribe Add-on, we’d like to inform you that support for premium plugins is not allowed in this forum. For assistance, kindly contact our dedicated helpdesk/visit our website. Our team will be happy to assist you and provide a solution to resolve the deprecated notice.
Thanks.
Hello,
I am using the latest version (5.1.0). Please find a screenshot of my debug.log here:
https://ibb.co/0rkcPCH
As said, when disabling Back in stock notifier, the notice disappears. So I am pretty sure that the notice is caused by your plugin.
Thank you in advance.
Hi, replace content in line number 48 (file wp-content/plugins/back-in-stock-notifier-for-woocommerce/includes/frontend/class-product.php) the old line :
echo do_shortcode( $this->display_subscribe_box( $product, array(), $display_filter ) );
with:
echo do_shortcode( $this->display_subscribe_box( $product, array(), $display_filter ) ?? '');
Thank you, that fixed it.
@codewoogeeksupport Can you please include this fix in the next update?
Hello,
Thank you for the heads-up, @trektor.
We are pleased to inform you that we will include this fix in our next official update, which will be available shortly.
Thanks.
Thank you @newshop for creating this error report and @trektor for the fix. Confirmed working on WP 6.4.2 WC 8.4.0 Back In Stock 5.1.0 PHP 8.1.27