Title: Fatal error: get_queried_object, nav-menu-template.php
Last modified: August 20, 2016

---

# Fatal error: get_queried_object, nav-menu-template.php

 *  [example42](https://wordpress.org/support/users/example42/)
 * (@example42)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-get_queried_object-nav-menu-templatephp/)
 * One of our high traffic blogs has been crashing with the error, below. Initially,
   it was once every few weeks. Now it’s multiple times a day. Restarting Apache
   fixes the problem. A Google search shows loads of other people get this same 
   error, but I was unable to find an explanation or solution. Anyone else encountered
   this problem?
 * PHP Fatal error: Call to a member function get_queried_object() on a n
    on-object
   in /home/www/example.com/wp-includes/nav-menu-template.php on line 251

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-get_queried_object-nav-menu-templatephp/#post-2393095)
 * Have you tried reducing the number of menu items in your custom menu(s)?
 *  Thread Starter [example42](https://wordpress.org/support/users/example42/)
 * (@example42)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-get_queried_object-nav-menu-templatephp/#post-2393243)
 * I have not. What’s the logic behind reducing of menu items? Is something timing
   out? Or overflowing? And why would it work for tens of thousands of hits, and
   then fail every hit until a reboot?
 *  [tccarter](https://wordpress.org/support/users/tccarter/)
 * (@tccarter)
 * [14 years ago](https://wordpress.org/support/topic/fatal-error-get_queried_object-nav-menu-templatephp/#post-2393457)
 * [@example42](https://wordpress.org/support/users/example42/) I’m seeing the exact
   same error (which showed up after a round of updates), have you had any luck 
   in addressing the issue thus far?
 *  Thread Starter [example42](https://wordpress.org/support/users/example42/)
 * (@example42)
 * [14 years ago](https://wordpress.org/support/topic/fatal-error-get_queried_object-nav-menu-templatephp/#post-2393458)
 * I was never able to figure it out. It may been ops cache related (notoriously
   unstable). In the end, I migrated the blog to ZippyKid (had been planning to 
   do that anyway) and haven’t had any problems. Good luck!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Fatal error: get_queried_object, nav-menu-template.php’ is closed to 
new replies.

## Tags

 * [fatal](https://wordpress.org/support/topic-tag/fatal/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [example42](https://wordpress.org/support/users/example42/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/fatal-error-get_queried_object-nav-menu-templatephp/#post-2393458)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
