Call to a member function get_queried_object() on null in nav-menu-template.php
-
[ Moderator note: moved to Fixing WordPress. ]
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?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Call to a member function get_queried_object() on null in nav-menu-template.php’ is closed to new replies.