Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Blog page shows a fatal error code WordPress

  • SOLVED

Hello,

I purchased a WordPress theme and succeeded in customizing several pages. But now that I am trying to customize the blog page of this theme, here is the message that shows up:

<blockquote>Fatal error: Call to a member function get_queried_object() on a non-object in /home/mynamehere/public_html/demo/blog/wp-includes/query.php on line 43</blockquote>

This message prevents the WordPress dashboard banner to show up at the top of the page. Unlike other pages, the place where this banner should be is just blank (probably due to the fatal error code.)

What is it due to? How can I fix this?

I would rather like not to share my website's link in public so if anybody can help me that'd be neat ;)

Thanks!

Answers (3)

2011-10-22

Luis Cordova answers:

check your query, use some echo or var_export commands to output something and check

the problem is not that but before, it should be simple


Patty75 comments:

I can locate the error but I can't find a way to fix it, that's my issue...

I'll keep trying but so far I can't figure it out on my own.

Thanks for replying


Luis Cordova comments:

hmm Patty can you post your code on github to check, we need to debug it, see the output where, to be able to work on it.


Luis Cordova comments:

basically the query is returning null so no results that is why it is trying to apply a method to a null


Patty75 comments:

Hey Luis,

sure, how can I do that?


Luis Cordova comments:

try http://www.github.com or if you don't know it then try pastie.org to paste your code more complete and send me a message with the link


Patty75 comments:

Ok doing this now - thank you!


Patty75 comments:

<strong>THANK YOU SO MUCH!</strong>

So happy now that I fixed this!

Have a fab day,

- Patty

2011-10-22

Bogdan answers:

Send me your skype ID and install Team Viewer.


LE: Or send it here: [email protected]


Patty75 comments:

Contacted - thank you

2011-10-22

Jurre Hanema answers:

Did you modify any Wordpress core files? As this is an error in a Wordpress core file, I suggest you try re-installing WP first.


Patty75 comments:

Re-installed the core files and it didn't work :/

I did a lot of customization on this theme so I'm hoping to find a solution that doesn't compromises the customized files.

Thanks for replying,

- Patty