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.