: Uncaught Error: Call to a member function get_average_rating() on null in /var/www/html/wp-content/plugins/woocommerce-product-badge-manager/includes/class-wpbm-shortcode.php:81
Stack trace:
#0 /var/www/html/wp-includes/shortcodes.php(433): Wpbm_Shortcode->create_product_single_page_badge_shortcode()
#1 [internal function]: do_shortcode_tag()
#2 /var/www/html/wp-includes/shortcodes.php(273): preg_replace_callback()
#3 /var/www/html/wp-content/plugins/woocommerce-product-badge-manager/includes/class-wpbm-shortcode.php(207): do_shortcode()
#4 /var/www/html/wp-includes/shortcodes.php(433): Wpbm_Shortcode->create_product_catalogue_page_badge_extended_shortcode()
#5 [internal function]: do_shortcode_tag()
#6 /var/www/html/wp-includes/shortcodes.php(273): preg_replace_callback()
#7 /var/www/html/wp-content/plugins/oxygen/component-framework/components/classes/code-block.class.php(133) : eval()'d code(1): do_shortcode()
#8 /var/www/html/wp-content/plugins/oxygen/component-framework/components/classes/code-block.clas in