# How do I fix WooCommerce Error: Call to a member function is\_visible()?

**URL:** <https://community.swiftype.com/t/how-do-i-fix-woocommerce-error-call-to-a-member-function-is-visible/81>\
**Category:** WordPress\
**Created:** [December 21, 2015, 11:12pm UTC](https://community.swiftype.com/t/how-do-i-fix-woocommerce-error-call-to-a-member-function-is-visible/81 "2015-12-21T23:12:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/swiftype/original/1X/fd652d1735c60057fa71c371375511028f9a1832.png) [@system](https://community.swiftype.com/u/system)\
**Post date:** [December 21, 2015, 11:12pm UTC](https://community.swiftype.com/t/how-do-i-fix-woocommerce-error-call-to-a-member-function-is-visible/81/1 "2015-12-21T23:12:34Z")

</div>

> **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.
