Forum Replies Created
- leomoonParticipant5 years, 2 months ago in reply to: is_page() error in class-wpsolr-plugin-woocommerce.php resulting in null-object #10886
Also, just in case it needs flexible shipping, here are my production zips of basic and pro:
leomoonParticipant5 years, 2 months ago in reply to: is_page() error in class-wpsolr-plugin-woocommerce.php resulting in null-object #10885Did the install go through ok?
I do see the Active Payments menu within Woocommerce. Maybe you need to enable at least one payment method in Woocommmerce/Settings/Payment for it to show up (although it would be nonsense).Here is a zipped up folder from my production site. The previous one was the official zip from their website. It should be the same, but I want to eliminate that option:
leomoonParticipant5 years, 2 months ago in reply to: is_page() error in class-wpsolr-plugin-woocommerce.php resulting in null-object #10881You are right: it is a combination of ActivePayments and WPSOLR, yet if I deactivate either of the two, the problem goes away.
Here is a link to ActivePayments:
leomoonParticipant5 years, 2 months ago in reply to: is_page() error in class-wpsolr-plugin-woocommerce.php resulting in null-object #10875I forgot an important detail: the page that is being queried and which returns null is the shopping cart page (in my case, ID 243)
leomoonParticipant5 years, 2 months ago in reply to: is_page() error in class-wpsolr-plugin-woocommerce.php resulting in null-object #10874Further, get_queried_object() function, in the first line:
if ( isset( $this->queried_object ) ) {
return $this->queried_object;
}
… returns a valid object if WPSOLR is deactivated. If WPSOLR is active, it goes further into a function and still returns null ultimately. I guess $this->queried_object should have a valid value.leomoonParticipant5 years, 2 months ago in reply to: is_page() error in class-wpsolr-plugin-woocommerce.php resulting in null-object #10873Did that, but it did not help.
I’ve traced it to line 3194 of class-wp-query.php where $page_obj = $this->get_queried_object(); results in null when WPSOLR is active, and returns a valid object if it is deactivated.
leomoonParticipant5 years, 2 months ago in reply to: is_page() error in class-wpsolr-plugin-woocommerce.php resulting in null-object #10870Errors gone with deactivation of WP-Solr. Check out the site.
Would you like me to create you an account on the site?
leomoonParticipant5 years, 2 months ago in reply to: is_page() error in class-wpsolr-plugin-woocommerce.php resulting in null-object #10867This new fix still did not make a difference when it comes to adding to cart. Massive stack trace of errors.
leomoonParticipant5 years, 2 months ago in reply to: is_page() error in class-wpsolr-plugin-woocommerce.php resulting in null-object #10864That did fix the errors that show up as you land on the homepage, BUT, now try to add something to the cart (in Naški language that is Dodaj u košaricu)
leomoonParticipant5 years, 2 months ago in reply to: is_page() error in class-wpsolr-plugin-woocommerce.php resulting in null-object #10860Great, I can remove the shares then.
Yes, I get the notifications now!
leomoonParticipant5 years, 2 months ago in reply to: is_page() error in class-wpsolr-plugin-woocommerce.php resulting in null-object #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!Ah6mDhPS2VbWguMO5ICfdXwrWSPIVAleomoonParticipant5 years, 2 months ago in reply to: is_page() error in class-wpsolr-plugin-woocommerce.php resulting in null-object #10856But here is a screenshot of the stack trace before that fix, just so you have it for reference:
leomoonParticipant5 years, 2 months ago in reply to: is_page() error in class-wpsolr-plugin-woocommerce.php resulting in null-object #10855Yes, the same issue.
I added check for null return to class-wp-query.php:
$page_obj = $this->get_queried_object();
if($page_obj == null)
{
return false;
}But this is a temporary fix. Something is wrong.
leomoonParticipant5 years, 2 months ago in reply to: is_page() error in class-wpsolr-plugin-woocommerce.php resulting in null-object #10853Apparently, in class-wp-query.php, line 3914:
$page_obj = $this->get_queried_object();
returns null even though it passes is_page() logic, and the id is correct (the shop page ID).
leomoonParticipant5 years, 2 months ago in reply to: is_page() error in class-wpsolr-plugin-woocommerce.php resulting in null-object #10852I just did, yet it sill has the same problem. I activated replace on search, home/blog, categories and tags. Exact the same errors.