• Hi!

    Can you please help me with this error? I do not know how to solve it

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

    Thank you in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,
    Probably you are calling a function on some empty object like a query on some empty result/array or passing empty argument to the function. It looks that your theme or some plugin is calling a function without checking it’s existence. To troubleshoot it first run the site with some basic theme like twenty-fourteen and if error is resolved then there must be some error in your theme, otherwise deactivate all theme and activate them one by one to find guilty plugin.
    Hope you will get some assistance from this.

    Moderator t-p

    (@t-p)

    Fatal error in the output generally indicates either:
    (1) your theme doesn’t like your version of WordPress
    (2) you have a plugin that doesn’t like your version of WordPress
    (3) or you have an incomplete install/upgrade

    What did do before this error occurred?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error Call to a member function get_queried_object_id() on a non-object’ is closed to new replies.