Please provide your URL in the question. 99% of the time support questions are answered within 24 hours by the theme authors. If you need a new feature for the theme: post it in its category. Once it will get some up votes we will add it in the next update.

Shop Page Fatal Error

0 votes

Hi,

i updated on modello 1.5.9 but now i have an fatal error on my woocommerce shop page:

 

Fatal error: Call to a member function is_visible() on boolean in /public_html/wp-content/themes/cb-modello/woocommerce/content-product.php on line 26

Line 26 says:

if ( ! $product->is_visible() )

maybe you can tell me how to fix this on my own? / what i have to toggle.

 

kind regards

asked May 10 in Modello by fj4iolkjll (140 points)

1 Answer

0 votes
thats for the catalog settings, never seen that error in modello before. you can try it with the great way of changing the "if" from if ( ! $product->is_visible() )

to

if (2>1)

 

Im checking themes every weekend, if thats specific theme issue, ill post the update.
answered May 10 by Paul cb-theme (95,160 points)
Hi,
i followed your advise and changed
if ( ! $product->is_visible() )
to
if (2>1)

Now i dont get the error message anymore but the products are not visible!
How can i fix that?
sorry, change it to:
if(1>2)
Okay, ive done so.
Now i can see a frame but also a new error:

Fatal error: Call to a member function get_gallery_attachment_ids() on boolean in /public_html/wp-content/themes/cb-modello/woocommerce/content-product.php on line 44

http://prntscr.com/f7ibsg
yup, im posting update in few days
for now try to disable wp-debug in wp-settings.php
...