WooCommerce

错误:Call to a member function is_visible() on a non-object

在使用WooCommerce过程中,如果修改了shop base page的固定链接,会引发错误Call to a member function is_visible() on a non-object。

错误提示类似下面这样:

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

访问shop页面会出现这个错误,访问其他页面没问题,解决的方法是

设置 » 固定链接中重新保存一下固定链接

1条评论

评论已关闭。