Fatal Error when Viewing Product
-
I recently bought a new theme and everything seems to work perfect except for when I try and open the product pages.
I get the following error:
Fatal error: Call to a member function get_customer_id() on a non-object in /home/p253j7jc/public_html/wp-content/plugins/woocommerce-catalog-visibility-options/lib/woocommerce-catalog-restrictions/classes/class-wc-catalog-restrictions-query.php on line 145Line 145:
if ( $session_id = false ) {
$session_id = WC_Catalog_Visibility_Compatibility::WC()->session->get_customer_id();
}When I disable catalog visibility plugin the product page successfully loads.
I really need the plugin and would like to use my new theme. How should I proceed?
I would appreciate any help.
https://www.ads-software.com/plugins/wp-e-commerce-catalog-visibility-and-email-inquiry/
- The topic ‘Fatal Error when Viewing Product’ is closed to new replies.