Error in footer when logged in (3 posts)

  1. SimonDorfman
    Posted 4 years ago #

    After migrating wordpress to a new server, I now have an error in the footer of my wordpress website that is only visible when I'm logged in. Here is the error:

    <!-- X --><br />
    <b>Fatal error</b>:  Call to a member function get_queried_object() on a non-object in <b>/home/username/mywebsite.com/wp-includes/admin-bar.php</b> on line <b>440</b><br />

    Here is the referenced line causing the error:

    $current_object = $wp_the_query->get_queried_object();

    Anyone have any ideas how to troubleshoot this one?

    Many thanks in advance.

  2. ajwilcox
    Posted 4 years ago #

    I get the same error. After copying a customised theme to a new server.

  3. esmi
    Forum Moderator
    Posted 4 years ago #

    @ajwilcox: Please post your own topic.

Topic Closed

This topic has been closed to new replies.

About this Topic