WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] PageofPost setup getting Fatal Error in query.php (9 posts)

  1. thegreyspot
    Member
    Posted 3 years ago #

    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

    Thanks!

  2. webjunk
    Member
    Posted 3 years ago #

    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.

  3. thegreyspot
    Member
    Posted 3 years ago #

    Thanks,
    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.

  4. webjunk
    Member
    Posted 3 years ago #

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

  5. thegreyspot
    Member
    Posted 3 years ago #

    Ahh Im sorry..

    Here it is: http://wordpress.pastebin.com/gmdfd2gA

    Thanks for letting me know

  6. webjunk
    Member
    Posted 3 years ago #

    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...

  7. thegreyspot
    Member
    Posted 3 years ago #

    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?

    thanks!

  8. webjunk
    Member
    Posted 3 years ago #

    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?

  9. thegreyspot
    Member
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic