Hello Team BoomDevs,
I notice that I am getting this error on my log_errors and that seems to be related to this shortcode:
2023/02/06 11:47:27 [error] 118304#118304: *902365 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to a member function get_average_rating() on bool in /www/panda_558/public/wp-content/plugins/woocommerce-product-badge-manager/includes/class-wpbm-shortcode.php:81
Stack trace:
#0 /www/panda_558/public/wp-includes/shortcodes.php(355): Wpbm_Shortcode->create_product_single_page_badge_shortcode(Array, ”, ‘woo_pro_badges’)
#1 [internal function]: do_shortcode_tag(Array)
#2 /www/panda_558/public/wp-includes/shortcodes.php(227): preg_replace_callback(‘/\\[(\\[?)(woo_pr…’, ‘do_shortcode_ta…’, ‘[woo_pro_badges…’)
#3 /www/panda_558/public/wp-content/plugins/woocommerce-product-badge-manager/includes/class-wpbm-shortcode.php(207): do_shortcode(‘[woo_pro_badges…’)
#4 /www/panda_558/public/wp-includes/shortcodes.php(355): Wpbm_Shortcode->create_product_catalogue_page_badge_extended_shortcode(”, ”, ‘woo_pro_badges_…’)
#5 [internal function]: do_shortcode_tag(Array)
#6 /www/panda_558/public/wp-includes/shortcodes.php(227): preg_replace_callback(” while reading response header from upstream, client: 83.85.169.248, server: swhales.eu, request: “POST /wp-admin/admin-ajax.php HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php8.0-fpm-panda.sock:”, host: “www.swhales.eu:15707”, referrer: “https://www.swhales.eu/wp-admin/post.php?post=10101&action=elementor”
Could you help me please?
Thanks for your help,
kind regards,
Sophie