is_page() error in class-wpsolr-plugin-woocommerce.php resulting in null-object
-
leomoonParticipant4 years, 2 months ago #10832
There are several errors of this content that appear on the storefront/bookshop theme homepage ONLY:
( ! ) Notice: Trying to get property ‘ID’ of non-object in /var/www/antikvarijatknjiga.hr/public_html/wp-includes/class-wp-query.php on line 3918
You can full the full stack trace if you simply go to http://www.antikvarijatknjiga.hr
leomoonParticipant4 years, 2 months ago #10848The shop page indeed was not defined, but I got the woocommerce to make all the pages again, and the shop page now is defined (a default one, https://www.antikvarijatknjiga.hr/shop/), BUT, the errors are still there.
The is_shop() function returns false.
leomoonParticipant4 years, 2 months ago #10850Not exactly the same, but now it fails at is_page(). Here are few last lines of the stack trace. If you go to http://www.antikvarijatknjiga.hr you can see the full trace.
wpsolr\pro\extensions\woocommerce\WPSOLR_Plugin_WooCommerce->is_product_category_url( )
…/class-wpsolr-plugin-woocommerce.php:357
is_shop( )
…/class-wpsolr-plugin-woocommerce.php:383
…/wc-conditional-functions.php:32
WP_Query->is_page( )leomoonParticipant4 years, 2 months ago #10858It actually is not directly a product archive. It is a page based on Homepage template that is part of Storefront Powerpack.
Here is storefont theme:
https://1drv.ms/u/s!Ah6mDhPS2VbWhuxzDU3NCCmEGzs8vQHere is storefront Powerpack:
https://1drv.ms/u/s!Ah6mDhPS2VbWguMAAHMZqky9NpbWTwHere is bookshop child theme I am using:
https://1drv.ms/u/s!Ah6mDhPS2VbWguMO5ICfdXwrWSPIVA
You must be logged in to reply to this topic.