I am getting an error with WooCommerce Product Reviews Pro.
Is this theme related?
Thanks.
[07-Feb-2022 01:18:02 UTC] PHP Notice: wc_get_product was called incorrectly. wc_get_product should not be called before the woocommerce_init, woocommerce_after_register_taxonomy and woocommerce_after_register_post_type actions have finished. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters, WooCommerce->init, do_action(‘woocommerce_init’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Product_Reviews_Pro_Frontend->flag_contribution, WC_Contribution->flag, do_action(‘wc_product_reviews_pro_flagged_contribution_email’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails::send_transactional_email, do_action_ref_array(‘wc_product_reviews_pro_flagged_contribution_email_notification’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Product_Reviews_Pro_Emails_Flagged_Contribution->trigger, WC_Contribution->get_product, wc_get_product, wc_doing_it_wrong Please see <a href="https://wordpre in /home/xxxx/strictlymedicinalseeds.com/wp-includes/functions.php on line 5663
[07-Feb-2022 01:18:02 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_title() on null in /home/xxxx/strictlymedicinalseeds.com/wp-content/plugins/woocommerce-product-reviews-pro/includes/emails/class-wc-product-reviews-pro-emails-flagged-contribution.php:257
Stack trace:
#0 /home/xxxx/strictlymedicinalseeds.com/wp-includes/class-wp-hook.php(303): WC_Product_Reviews_Pro_Emails_Flagged_Contribution->trigger(‘536320’, Object(WC_Product_Reviews_Pro_Contribution_Flag))
#1 /home/xxxx/strictlymedicinalseeds.com/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(’’, Array)
#2 /home/xxxx/strictlymedicinalseeds.com/wp-includes/plugin.php(518): WP_Hook->do_action(Array)
#3 /home/xxxx/strictlymedicinalseeds.com/wp-content/plugins/woocommerce/includes/class-wc-emails.php(170): do_action_ref_array(‘wc_product_revi…’, Array)
#4 /home/xxxx/strictlymedicinalseeds.com/wp-includes/class-wp-hook.php(303): WC_Emails::send_transactional_email(Array, Object(WC_Product_Reviews_Pro_Contribution_Flag) in /home/xxxx/strictlymedicinalseeds.com/wp-content/plugins/woocommerce-product-reviews-pro/includes/emails/class-wc-product-reviews-pro-emails-flagged-contribution.php on line 257