Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Following the update to 1.4 and then to 1.x dev (build of Feb 6), my site crashes badly with the following notices. So bad that the admin for managing Menus is unavailable. With Menu Translation disabled the site performs ok, with the exception that all the language translation for the menus are listed at once.
Notice: Use of undefined constant MENU_PREFERRED_LINK - assumed 'MENU_PREFERRED_LINK' in i18n_menu_init() (line 786 of /sites/all/modules/i18n/i18n_menu/i18n_menu.module).
Notice: Use of undefined constant MENU_PREFERRED_LINK - assumed 'MENU_PREFERRED_LINK' in i18n_menu_init() (line 824 of /sites/all/modules/i18n/i18n_menu/i18n_menu.module).
Notice: Use of undefined constant MENU_PREFERRED_LINK - assumed 'MENU_PREFERRED_LINK' in i18n_menu_init() (line 826 of /sites/all/modules/i18n/i18n_menu/i18n_menu.module).
Notice: Undefined index: menu_name in menu_tree_page_data() (line 1249 of /includes/menu.inc).
Notice: Undefined index: menu_name in menu_set_active_trail() (line 2343 of /includes/menu.inc).
Notice: Undefined index: menu_name in menu_tree_page_data() (line 1249 of /includes/menu.inc).
Notice: Undefined index: p1 in menu_tree_page_data() (line 1253 of /includes/menu.inc).
Notice: Undefined index: p2 in menu_tree_page_data() (line 1253 of /includes/menu.inc).
Notice: Undefined index: p3 in menu_tree_page_data() (line 1253 of /includes/menu.inc).
Notice: Undefined index: p4 in menu_tree_page_data() (line 1253 of /includes/menu.inc).
Notice: Undefined index: p5 in menu_tree_page_data() (line 1253 of /includes/menu.inc).
Notice: Undefined index: p6 in menu_tree_page_data() (line 1253 of /includes/menu.inc).
Notice: Undefined index: p7 in menu_tree_page_data() (line 1253 of /includes/menu.inc).
Notice: Undefined index: p8 in menu_tree_page_data() (line 1253 of /includes/menu.inc).
Notice: Undefined index: href in menu_set_active_trail() (line 2380 of /includes/menu.inc).
Notice: Undefined index: type in menu_get_active_title() (line 2551 of /includes/menu.inc).
Notice: Undefined index: title in menu_get_active_title() (line 2552 of /includes/menu.inc).
Notice: Undefined index: href in menu_get_active_breadcrumb() (line 2516 of /includes/menu.inc).
Notice: Undefined index: title in menu_get_active_breadcrumb() (line 2538 of /includes/menu.inc).
Notice: Undefined index: href in menu_get_active_breadcrumb() (line 2538 of /includes/menu.inc).
Notice: Undefined index: localized_options in menu_get_active_breadcrumb() (line 2538 of /includes/menu.inc).
Recoverable fatal error: Argument 3 passed to l() must be an array, null given, called in /includes/menu.inc on line 2538 and defined in l() (line 2307 of /includes/common.inc).
Comments
Comment #1
moniuch CreditAttribution: moniuch commentedsolved
Comment #2
arne_hortell CreditAttribution: arne_hortell commentedhow?
Comment #3
xcono CreditAttribution: xcono commentedSome notices...
Uninstal module, update Drupal to 7.12, install each module separately. It works.
Comment #4
moniuch CreditAttribution: moniuch commentedupdate to D7.12
http://drupal.stackexchange.com/questions/21931/i18n-1-4-use-of-undefine...
Comment #5
arne_hortell CreditAttribution: arne_hortell commentedA tiny problem...
As i earlier read, D7.12 seems to have some issues with menus and their submenus which currently keeps me from upgrading to 7.12 and if running 7.10 i cant use the i18n...
Any ideas to solve this?
Comment #6
colan@arne: What are the other issues? Please link to them over at the other issue: #1351678: Follow menu_link_get_preferred active trail handling for custom menus.
Comment #7
arne_hortell CreditAttribution: arne_hortell commentedWell,
I tried it and all menu links was deleted, after upgrading to 7.12
Now I redid all menus, all links but i18n is still lots of bugs in it so I can't use it
And are stuck with gt instead.
I simply warn everyone for 7.12 regarding menus,submenus.
I18n simply don't work, gets errors and warnings everywhere.
Comment #8
colanDid you update your DB schema, update.php or "drush updb"? Several changes there.
Comment #9
arne_hortell CreditAttribution: arne_hortell commentedI did run update AND when that didnt work
I unchecked, uninstalled everything and then reinstalled it again.
No change.
Comment #10
colanI just did the upgrade, and I can't reproduce this. Everything works fine for me. It's probably something specific to your configuration, as it doesn't look like anyone else is having problems either.