Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
menu system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Jul 2008 at 13:19 UTC
Updated:
2 Jul 2008 at 17:58 UTC
Apparently this patch renamed "Primary links" without catching all the places the "primary-links" menu named is used: #270917: UB Usability : Labeling primary link label.
visiting the page: admin/build/menu/settings
I get:
notice: Undefined index: main-menu in modules/menu/menu.admin.inc on line 633.
Comments
Comment #1
catchThis seems to be the order of events:
$menu_options = menu_get_menus()
$main_options = array_merge($menu_options, array('' => t('No Main menu')));
(line 633) array('%main' => $main_options[$main]))
All I did was a find and replace on this, so not looked at the code in much depth, however I can't see a primary links missing here. One possibility - is your database quite old, if it is, did you run update.php?
Comment #2
pwolanin commentedhmm, maybe? I'll try from a fresh install.
Comment #3
catchNote that apart from changing the variable names, there's no upgrade path to change menu names themselves on old installs, but at the time I was convinced this was both unnecessary and a bad idea. Ought'nt to be an issue but worth mentioning.
Comment #4
pwolanin commentedhmm, we did a 5->6 upgrade. Without one people will be sad that their links all go away, won't they? Or will they be fine due to the variable settings?
Comment #5
catchAs far as I could work out, the variable and old Primary links/Secondary links ought to be maintained and continue to work - just as if you'd put custom menus there. IMO it'd be like renaming 'Story' to 'Article' in an upgrade path - no point messing with admin-alterable stuff on existing sites. 5-6 updates were more about ensuring things worked after the refactoring (although I don't remember the reason for that specific update).
Comment #6
pwolanin commentedok then.