Closed (duplicate)
Project:
Drupal core
Version:
7.4
Component:
menu system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jan 2011 at 12:42 UTC
Updated:
2 Apr 2018 at 19:39 UTC
Jump to comment: Most recent
Comments
Comment #1
drupalshrek commentedThe correct site URL is http://lesjoyeuxcolibris.be/
Comment #2
cvining commentedI have this error also, in more than one site upgraded to D7. It would be nice to quash.
Comment #3
drupalshrek commentedThanks 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.
Comment #4
cvining commentedMy sites are English only, so multilingual isn't the problem.
Comment #5
droplet commented#1018614: Inaccessible menu items in navigation links cause "Notice: Undefined index: localized_options" duplicate ?
Comment #6
dcrocks commentedUsing 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.
Comment #7
farhadhf commentedI 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.
Comment #8
chrismoyer commentedNotice: 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
Comment #9
sunlixif 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.
Comment #10
halmsx commentedThanks. Setting it to "No Secondary links" works.
Comment #11
maxview commenteddrupal 7.26 STRUCTURE -> MENUS -> SETTING, Setting it to "No Secondary links" as above mentioned, problem solved
Comment #12
kenahoo commentedStill seeing this problem in Drupal 7.39. I already have "No Secondary links" selected.
Comment #13
hass commentedComment #14
solomon.yifru commentedPlease go to admin/structure/menu/settings and select your proper Source for the Main links. Main Menu, then It will work fine.
Comment #15
mvel commentedProblem solved by following maxview's suggestion.