Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 65051

Call to a member function get_queried_object() on null in nav-menu-template.php

$
0
0

Replies: 0

I have the following error appearing in my error log but absolutely no idea where to find out what’s causing this in my template files.

PHP Fatal error: Call to a member function get_queried_object() on null in wp-includes/nav-menu-template.php on line 275

Line 275 is

$queried_object = $wp_query->get_queried_object();

Any ideas?

  • This topic was modified 3 minutes ago by greencode.
  • This topic was modified 38 seconds ago by greencode.
  • This topic was modified 18 seconds ago by greencode.

Viewing all articles
Browse latest Browse all 65051