Header Builder Bug - WooCommerce Product Conditions

Hey team, just wanted to report a bug.

I’m trying to display a Cart icon in a Header Container on the following WooCommerce Pages:

  • Cart
  • Account
  • Checkout
  • Shop
  • Product (is) - Is Visible.

I’m getting the following php error when loading a single product page:
Fatal error: Uncaught Error: Call to a member function is_visible() on string in /Users/kjroelke/Local Sites/_Kingdom One/spark_staffing/app/public/wp-content/themes/pro/cornerstone/includes/classes/components/class-woocommerce.php on line 589

I’m running WP 5.8.3, WooCommerce 6.1.0 and Pro 5.1.4.

Hi @kjroelke,

Thanks for reaching out.
I have the same configuration in my local environment but never had the issue you specified. I have also tried to replicate that by assuming the way you have followed but am unable to do so. I guess there might be some different reasons behind your issue, I would like to suggest troubleshooting the following common issue to help us to recognize the reason.

1.Theme Related Issue
2.Plugin Conflict
3.Theme Update related issue
4.Child Theme Related issue ** if you have activated it.
5.CSS/JS Customization
6.Disabling Cache
7.Disabling CDN

If you discover that an issue is coming from a custom code or 3rd party plugin, kindly consult with a developer or contact the plugin author. Please note that we do not provide support for custom codes and 3rd party plugins.
If none of the above help, please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

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