Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291123

Cannot add menu link!

$
0
0

I created a new menu and tried to add a link but I keep getting the following error message:

Notice: Undefined offset: 1 in menu_edit_item_submit() (line 426 of /var/www/html/modules/menu/menu.admin.inc).

Here is line #426:

list($item['menu_name'], $item['plid']) = explode(':', $item['parent']);

I did some debugging and looks like there is no $item['menu_name'] nor $item['plid'] and $item['parent'] is empty:

item : Array
(
    [delete] => Delete
    [submit] => Save
    [link_title] => Translate
    [link_path] => admin/structure/taxonomy/medical_record
    [mlid] => 0
    [module] => menu
    [has_children] => 0
    [options] => Array
        (
            [attributes] => Array
                (
                    [title] =>
                )

        )

    [customized] => 1
    [original_item] => Array
        (
            [link_title] =>
            [mlid] => 0
            [plid] => 0
            [menu_name] => menu-ontology
            [weight] => 0
            [link_path] =>
            [options] => Array
                (
                )

            [module] => menu
            [expanded] => 0
            [hidden] => 0
            [has_children] => 0
            [language] => und
        )

    [description] =>
    [expanded] => 0
    [parent] =>
    [weight] => 0
    [form_build_id] => form-Hh-5wKY2ynZEen99qblQ8NEyEVh6284HCrAZ90tMh6g
    [form_token] => keENrsUqRa4dghg4E_DBGHny2TEITZeXscggZOblW9k
    [form_id] => menu_edit_item
    [language] => und
    [op] => Save
    [hidden] => 0
)

This seems to be a pretty big bug in menu core...


Viewing all articles
Browse latest Browse all 291123

Trending Articles