Woocommerce Product Reviews Pro

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

Hello @applegatetech,

Thanks for writing to us.

It seems that it is an issue of version compatibility issue. Please make sure your theme, WordPress, plugins, and the PHP version is updated as per our version compatibility page. Please note your server PHP version is 7.4 or 7.4+ as it is recommended by WordPress. Please have a look at this article.

I would suggest you troubleshoot with a few of the common issues before we investigate your settings.

  1. Testing For Theme Related Issue
  2. Testing For Plugin Conflict
  3. Theme Update
  4. Child Theme
  5. Css/Js Customization
  6. Increasing Php Memory Limit
  7. Disabling Cache
  8. Disabling Cdn
  9. Permalinks
  10. Version Compatibility

If none of those work, It would be best if you could copy your live website to your staging area. and send your details in a secure note so that we can investigate your setting without breaking your live site. Please provide the following details

  • WordPress Login URL
  • Admin level username and password
  • FTP Details

You can find the Secure Note button at the bottom of your posts

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.