• Resolved mondalaci

    (@mondalaci)


    Hi there,

    I’m running PHP 8.2 and I’m using Rollbar to catch errors. It’d be prudent to fix the following deprecation errors:

    E_DEPRECATED: Creation of dynamic property CWG_Instock_Mail::$get_message is deprecated (/var/www/ultimatehackingkeyboard.com/wordpress/wp-content/plugins/back-in-stock-notifier-for-woocommerce/includes/class-instock-mail.php:28) CWG_Instock_Mail::__construct(/var/www/ultimatehackingkeyboard.com/wordpress/wp-content/plugins/back-in-stock-notifier-for-woocommerce/includes/admin/class-post-type.php:384) CWG_Instock_Post_Type::send_manual_mail(/var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/class-wp-hook.php:324) WP_Hook::apply_filters(/var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/class-wp-hook.php:348) WP_Hook::do_action(/var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/plugin.php:517) do_action(/var/www/ultimatehackingkeyboard.com/wordpress/wp-admin/admin.php:419) require_once(/var/www/ultimatehackingkeyboard.com/wordpress/wp-admin/edit.php:10)

    E_DEPRECATED: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated
    (/var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/shortcodes.php:246) str_contains(/var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/shortcodes.php:246) do_shortcode(/var/www/ultimatehackingkeyboard.com/wordpress/wp-content/plugins/back-in-stock-notifier-for-woocommerce/includes/frontend/class-product.php:48) CWG_Instock_Notifier_Product::display_in_simple_product(/var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/class-wp-hook.php:324) WP_Hook::apply_filters(/var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/class-wp-hook.php:348) WP_Hook::do_action(/var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/plugin.php:517) do_action(/var/www/ultimatehackingkeyboard.com/wordpress/wp-content/plugins/woocommerce/includes/wc-template-functions.php:1708) woocommerce_template_single_add_to_cart(/var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/class-wp-hook.php:324) WP_Hook::apply_filters(/var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/class-wp-hook.php:348) WP_Hook::do_action(/var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/plugin.php:517) do_action(/var/www/ultimatehackingkeyboard.com/wordpress/wp-content/plugins/woocommerce/templates/content-single-product.php:60) require(/var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/template.php:792) load_template(/var/www/ultimatehackingkeyboard.com/wordpress/wp-content/plugins/woocommerce/includes/wc-core-functions.php:284) wc_get_template_part(/var/www/ultimatehackingkeyboard.com/wordpress/wp-content/plugins/woocommerce/templates/single-product.php:37) include(/var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/template-loader.php:106) require_once(/var/www/ultimatehackingkeyboard.com/wordpress/wp-blog-header.php:19) require(/var/www/ultimatehackingkeyboard.com/wordpress/index.php:17)
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support CodeWooGeek Support

    (@codewoogeeksupport)

    Hello there,

    Thank you for bringing the deprecated error to our attention.

    We are pleased to inform you that the reported deprecation error has been addressed and incorporated into our upcoming release. Once this version completes the subsequent stages and includes all necessary updates, it will be available shortly.

    Thanks.

    Thread Starter mondalaci

    (@mondalaci)

    Thanks for fixing this so quickly!

    Thread Starter mondalaci

    (@mondalaci)

    I’ve upgraded to the latest version of your plugin today, and the following deprecation warning persists:

    E_DEPRECATED: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated (/var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/shortcodes.php:246) str_contains(/var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/shortcodes.php:246) do_shortcode(/var/www/ultimatehackingkeyboard.com/wordpress/wp-content/plugins/back-in-stock-notifier-for-woocommerce/includes/frontend/class-product.php:48) CWG_Instock_Notifier_Product::display_in_simple_product(/var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/class-wp-hook.php:324) WP_Hook::apply_filters(/var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/class-wp-hook.php:348) WP_Hook::do_action(/var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/plugin.php:517) do_action(/var/www/ultimatehackingkeyboard.com/wordpress/wp-content/plugins/woocommerce/includes/wc-template-functions.php:1708) woocommerce_template_single_add_to_cart(/var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/class-wp-hook.php:324) WP_Hook::apply_filters(/var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/class-wp-hook.php:348) WP_Hook::do_action(/var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/plugin.php:517) do_action(/var/www/ultimatehackingkeyboard.com/wordpress/wp-content/plugins/woocommerce/templates/content-single-product.php:60) require(/var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/template.php:792) load_template(/var/www/ultimatehackingkeyboard.com/wordpress/wp-content/plugins/woocommerce/includes/wc-core-functions.php:284) wc_get_template_part(/var/www/ultimatehackingkeyboard.com/wordpress/wp-content/plugins/woocommerce/templates/single-product.php:37) include(/var/www/ultimatehackingkeyboard.com/wordpress/wp-includes/template-loader.php:106) require_once(/var/www/ultimatehackingkeyboard.com/wordpress/wp-blog-header.php:19) require(/var/www/ultimatehackingkeyboard.com/wordpress/index.php:17)

    Plugin Support CodeWooGeek Support

    (@codewoogeeksupport)

    Hello there,

    Thank you for updating to the latest version of our plugin.

    We are pleased to inform you that we have successfully addressed both of the reported errors:

    1. The error related to the “Creation of dynamic property CWG_Instock_Mail::$get_message is deprecated.”

    2. The error “E_DEPRECATED: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated.”

    Unfortunately, we are currently unable to replicate both issues on our end.

    However, if you have encountered the second error “str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated,” we suggest you perform the following steps:

    1. Temporarily deactivate all other plugins except “WooCommerce” and our “Back In Stock Notifier for WooCommerce” to check if the problem persists. Plugin conflicts can sometimes be the cause of such issues, and this process will help identify the root cause.

    2. Provide details about the conditions or scenarios under which the issue occurs.

    3. Confirm your PHP version by navigating to the Admin Dashboard -> WooCommerce -> Status -> System Status -> PHP version.

    This information will help us better assist you.

    Thanks.

    Thread Starter mondalaci

    (@mondalaci)

    I can confirm that these issues are fixed, indeed. Sorry for the false alarm, and thanks for the quick fix!

    Plugin Support CodeWooGeek Support

    (@codewoogeeksupport)

    Hello there,

    We’re delighted to hear that the issues have been resolved on your end. Thank you for confirming, and we appreciate your prompt update.

    If you have any more questions or encounter any issues in the future, please don’t hesitate to reach out. We’re here to help!

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘E_DEPRECATED errors’ is closed to new replies.