Warning: Attempt to read property “query_vars” on null
-
Hi!
I just set up the theme on a fresh site.
When I open the “Shop Page Widget area”, I see following error for each attribute filter preview:
Warning: Attempt to read property "query_vars" on null in wp-content/plugins/woocommerce/includes-wc-query.php on line 891.
Warning: Attempt to read property "query_vars" on null in wp-content/plugins/woocommerce/includes-wc-query.php on line 903.
When I click the specific filter open in the widget section, everything seems to work fine.
-
This topic was modified 1 month, 3 weeks ago by
Raido.
Attachments:
You must be
logged in to view attached files.
Hi Raido,
Thanks for reaching to us.
You should deactivate all plugins (except Required Plugins) and then reactivate them one by one. This makes it very easy to isolate the plugin causing problems.
Regards,
Hung PD
Hi!
I don’t have any extra modules.
Reason for this message to show is that I have this line:
ini_set('display_errors', 1);
If this is set to 0, then it does not appear, yet it’s masking the issue. Wonder if it’s now because of the widget being legacy or it’s a WooCommerce issue?
Hi Raido,
Thanks for sharing details.
It’s actually a warning message, won’t affect to your site. I kindly recommend you to turn it off.
Regards,
Hung PD