I have upgraded my very simple brochure site, http://lesjoyeuxcolibris to Drupal 7.0 (from Drupal 6.20), and when I log in as admin I see the following error displayed:
Notice: Undefined index: localized_options in menu_navigation_links() (line 1780 of /.../includes/menu.inc).

I haven't done anything particularly with the site; just upgraded.

This error was originally added as part of a forum post:
http://drupal.org/node/1016410
but I raise it here, since I think it is a bug which needs fixing.

Comments

drupalshrek’s picture

The correct site URL is http://lesjoyeuxcolibris.be/

cvining’s picture

I have this error also, in more than one site upgraded to D7. It would be nice to quash.

drupalshrek’s picture

Thanks for your post; good to know it's not just me.

Is your site a multilingual site at all? It would be worth eliminating that as a source of the error.

cvining’s picture

My sites are English only, so multilingual isn't the problem.

droplet’s picture

dcrocks’s picture

Using 7.x dev dated 2/25. Also get error:

Notice: Undefined index: localized_options in menu_navigation_links() (line 1779 of /Users/rocks/Sites/dru0225/includes/menu.inc).

Loading 'navigation' menu outside the block system with "menu_navigation_links" call. Works most of the time but not all.

farhadhf’s picture

Version: 7.0 » 7.4

I was trying to put user dashboard link (created with homebox) in main menu - I've used hook_menu_alter() in my module to change to show dashboard page as MENU_DEFAULT_LOCAL_TASK, so 'user/%user' shows the dashboard - the menu is shown but I get this error:
Notice: Undefined index: localized_options in menu_navigation_links() (line 1782 of /srv/http/Drupal_development/includes/menu.inc).

this is the code snippet used to put dashboard link in main menu.
$items['user/%user'] = array(
'title' => $page->settings['title'],
'page callback' => 'homebox_pre_build_user',
'page arguments' => array($page, 1),
'access callback' => '_homebox_user_access_view_user_homebox',
'access arguments' => array($page, 1),
'menu_name' => 'main-menu',
);

EDIT: dashboard menu link and the error is shown only in 'user/%user' page.

chrismoyer’s picture

Notice: Undefined index: localized_options in menu_navigation_links()

Work Around: create a link on the navigation menu for the URL and do not check enabled.

Steps, I used to validation RESOLUTION, each step, I saved and verified error still existed:
• Created an article: Title – Test; Tags – Test; In the body, I typed
Twitter
• Menu Settings: provided a menu link to content - Test
• Created a URL alias - Test
• Comment Settings – Closed
• Publish Options - Published Yes, all Others NO

ADMINISTRATION -> STRUCTURE -> MENUS -> NAVIGATION -> Under Operations, selected Edit Menu
List Links Tab -> Add Link
Menu Link Title : bHappy
Path: http://www.twitter.com
Do Not Check enabled
Parent Link: Navigation
SAVE

sunlix’s picture

if you don't use the secondary menu choose for secondary menu option. (structure -> menu -> tab:settings)
I use the menu_block module for generating my menus, so I don't use the secondary menu and in my case the error is gone.

halmsx’s picture

Thanks. Setting it to "No Secondary links" works.

maxview’s picture

drupal 7.26 STRUCTURE -> MENUS -> SETTING, Setting it to "No Secondary links" as above mentioned, problem solved

kenahoo’s picture

Issue summary: View changes

Still seeing this problem in Drupal 7.39. I already have "No Secondary links" selected.

solomon.yifru’s picture

Please go to admin/structure/menu/settings and select your proper Source for the Main links. Main Menu, then It will work fine.

mvel’s picture

Problem solved by following maxview's suggestion.