Hi there,
My WP is giving me this error:
Fatal error: Call to a member function get_queried_object() on a non-object in /home/wydajnykomputer/wydajnykomputer.pl/wp-includes/query.php on line 254
But it shows ONLY on categories pages:
http://wydajnykomputer.pl/antywirusy
and it works fine on other pages:
http://wydajnykomputer.pl
The fault code is in rsidebar.php (so it's the same on every page):
<?php wp_list_categories('show_count=0&title_li=<h2>Artykuły według kategorii</h2>'); ?>
So it's totally weired that it breaks only on the categorie's pages. Removing this line fixes the error. Removing only the content passed to this function doesn't help.
I am running these plugins which affect the categories:
- WP No Category Base
- All In One SEO Pack
But turning them off did not solve the problem.
Also, it seems I'm the only one who has this issue on Google. One guy had a similar error and solved it by writing global $wp_query inside the function stated in the error. For me it already has it global.
I did not modify the core code. I run 2 more blogs on the same hosting with almost the exact same config and plugins which don't have this error. It does seem like it came up during some plugin or WP updates since I didn't notice it upon setting up WP at the beginning.
Help please...