• I tried to get on my site to do some much overdo work only to find this lovely message:

    Fatal error: Call to a member function get_queried_object_id() on a non-object in …/public_html/wp-includes/query.php on line 61

    I was able to go in through c-panel and download the file. If I’m doing this right, line 61 is the line below that reads ” */ ” – Any ideas how to fix? I’m totally locked out of the front end of my site right now.

    * @return int ID of the queried object.
    */
    function get_queried_object_id() {
    global $wp_query;
    return $wp_query->get_queried_object_id();

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Fatal Error – non-object in wp-includes/query.p’ is closed to new replies.