#24448 closed defect (bug) (invalid)
Nav menu error
Reported by: | Looimaster | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Menus | Keywords: | |
Focuses: | Cc: |
Description
Fatal error: Call to a member function get_queried_object() on a non-object in C:\wamp\www\wp\wp-includes\nav-menu-template.php on line 267
The code I use in header.php:
wp_nav_menu(array('sort_column' => 'menu_order', 'theme_location' => 'mobile_menu', 'menu_id' => 'mobile_app_menu'));
I called this 3 times and number 1 & 2 display menu but number 3 breaks the script. Important: it happens only on page that is set to be 'page_for_posts' and nowhere else.
WordPress: 3.6-beta3-24375
Change History (4)
Note: See
TracTickets for help on using
tickets.
Looks like
$wp_query
global is unset or overwritten.