#24448 closed defect (bug) (invalid)
Nav menu error
| Reported by: | Looimaster | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Menus | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Looks like
$wp_queryglobal is unset or overwritten.