Support » Fixing WordPress » PageofPost setup getting Fatal Error in query.php

  • Resolved thegreyspot


    Hi all!

    I am trying to setup PageOfPosts as discribed here: Pages

    I used this page template
    [Code moderated as per the Forum Rules. Please use the pastebin]

    However when I try to visit the page I see this:

    Fatal error: Call to a member function get() on a non-object in ..\htdocs\wp-includes\query.php on line 27

    Any Ideas why its giving me this issue? Is there a better solution? All I want to do is have a simple discription of the category and then show post from that category below it. My website is here


Viewing 8 replies - 1 through 8 (of 8 total)
  • You have a set a function using get() but the object/value to act on is not a valid object. WHatever function you last added or changed will point to your error.

    Ya I wish i could know more information about newly added functions. I havn’t really installed any new plugins and it only happens on the page that i applied the template too. All other pages show their posts correctly.

    If you noticed above (the moderators remove) your template violated the rules because you are to use pastbin. If could see the template.

    Ahh Im sorry..

    Here it is:

    Thanks for letting me know

    Have the flu so can’t get too far into it…
    But I copied your code from pastbin and tried it and received no error. But from the looks of the code it might be theme dependant. Would try the default theme or another theme and see if you still have the error. Now I need to lie down again…

    OH no! I hope you get better 😉

    I switched the theme to the default theme, but seem to be having the same problem…

    Can you give me any advice on how to find the culprit function?


    Have you tried disabling plugins in case of conflict?
    Have you tried copying the code again from the link you gave into a new template page?
    Also what text editor are you using to edit the file or copy the text into to create the template?

    Thanks webjunk. I was able to figure out that the Events Calendar plugin i had was giving issues. I really like that plugin so now I dont know what to do 🙁

    Thanks for your help

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘PageofPost setup getting Fatal Error in query.php’ is closed to new replies.