Ready to get started?Download WordPress


PHP notice: Trying to get property of non-object in query.php (2 posts)

  1. M
    Posted 3 years ago #

    I have enabled the debug.log in my wp-content and found the following error:
    [19-Dec-2010 06:48:15] PHP Notice: Trying to get property of non-object in /home/[domain]/public_html/wp-includes/query.php on line 327

    I am having a constant 404 error when publishing and this is really annoying. Turning mod_security off does not help, nor any other action/advice I've applied following the instructions in the WP forums.

    If there is any connection between the two of them would be good to know.

    Also, any advice is appreciated.

  2. Mark / t31os
    Posted 3 years ago #

    Most likely a plugin function, or possibly a theme function is hooking to an action or filter hook inside the query class and doing so poorly, which is why it generates an error..

    You need to narrow down the problem first, so your first steps should be..

    1. Switch theme, confirm if problem is still present.
    2. Disable plugins, confirm if problem is still present.

    Not asking that you disable plugins or switch theme permenantly, just long enough to determine if doing so stops the errors being produced..

Topic Closed

This topic has been closed to new replies.

About this Topic