How do I fix WooCommerce Error: Call to a member function is_visible()?


Is there a way to resolve the following error when using the Swiftype WordPress plug-in co-operation with a WooCommerce enabled WordPress site?

Fatal error: Call to a member function is_visible() on a non-object in wp-content/plugins/woocommerce/templates/content-product.php on line 25

Definitely! Within the WooThemes configuration there is typically an option to have search results return only product pages. If this option is set, you will see the following parameter in your search result URLs: post_type=products.

Once that option is disabled, you should see the error resolve and search will working as expected.