Closed (fixed)
Project:
Special menu items
Version:
7.x-2.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jan 2012 at 21:30 UTC
Updated:
13 Nov 2023 at 16:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tami.allen commentedI just had the same error when visiting my Admin>Menus page. I cleared my cache and it went away. I've been changing some settings on Views that were Main Menu items, I think that caused the error.
Comment #2
jsenich commentedThe issue occurs when a menu item's link path is being controlled by another module such as views, panels (pages), etc. and there is not text field for link path.
Comment #3
jsenich commentedHere's a patch.
Comment #4
gotobedsleepyhead commentedThat fixed it - thanks!
Comment #5
dgastudio commentedpatch fixes the problem.
Comment #6
dimitriseng commentedI can also confirm that the patch removes the warnings.
Comment #7
hwasem commentedI applied it as well and it seems to have resolved the error.
Thanks!
Comment #8
drzraf commentedconfirmed, and attached a version generated with git diff -w for the sake of clarity.
Comment #9
gagarine commentedComment #10
hazaThe patch from #8 don't respect the indentation inside the "if".
Patch from #3 seems better.
Comment #11
gagarine commentedhttp://drupal.org/commitlog/commit/9840/c777f0e79f2514fbd23f58f4fa1c3bec...
Comment #13
valery86 commentedIt worked for me too!!
Thanks !
Comment #14
BillyTom commentedI am getting almost the same error in version 7.x-2.0:
Notice: Undefined index: #description in special_menu_items_form_menu_edit_item_alter() (line 138 of /var/data/vhosts/dev/httpdocs/drupal/sites/all/modules/special_menu_items/special_menu_items.module).It happens when I edit menu items that have been created by panel pages. Clearing the cache does not remove the error. As far as I can tell the module works fine otherwise: other attributes like "class" and "title" are beeing displayed normally.
Comment #16
poker10 commentedEvery time there is a
$form['link_path']and the default value set (https://git.drupalcode.org/project/special_menu_items/-/blob/7.x-2.x/spe...), there should be a#descriptionattribute set as well, see:https://git.drupalcode.org/project/drupal/-/blob/7.x/modules/menu/menu.a...
I suppose there was/is another module altering the form. Moving back to Fixed, as that is not a issue in this module. The module is working ok with taxonomy_menu and other programatically created menu items as far as i know. In case there is still an issue with this module, please create a new issue. Thanks!