Actually a few notices, on the 7.x-1.x-AJAX branch.

Notice: Undefined index: use_ajax in menu_attach_block_link() (line 155 of menu_attach_block.module).
Notice: Undefined index: no_drop in menu_attach_block_link() (line 155 of menu_attach_block.module).
Notice: Undefined index: use_ajax in menu_attach_block_link() (line 157 of menu_attach_block.module).
Notice: Undefined index: use_ajax in menu_attach_block_link() (line 177 of menu_attach_block.module).
Notice: Undefined index: use_ajax in menu_attach_block_link() (line 155 of menu_attach_block.module).
Notice: Undefined index: no_drop in menu_attach_block_link() (line 155 of menu_attach_block.module).
Notice: Undefined index: use_ajax in menu_attach_block_link() (line 157 of menu_attach_block.module).
Notice: Undefined index: use_ajax in menu_attach_block_link() (line 177 of menu_attach_block.module).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kyletaylored’s picture

Title: Notice: Undefined index: use_ajax in menu_attach_block_link() (line 89 of menu_attach_block.module). » Notice: Undefined index: use_ajax in menu_attach_block_link() (line 155 of menu_attach_block.module).
Issue summary: View changes
Status: Active » Needs review
FileSize
1.5 KB

Patch attached.

Cameron Tod’s picture

Status: Needs review » Postponed (maintainer needs more info)

That branch seems to have been deleted - could you show me the git history on it?

kristin.e’s picture

I have just upgraded to version 7.x-1.20 and now getting the following error on every page load:

Notice: Undefined index: use_ajax in menu_attach_block_link() (line 96 of /sites/all/modules/menu_attach_block/menu_attach_block.module).
Notice: Undefined index: no_drop in menu_attach_block_link() (line 96 of /sites/all/modules/menu_attach_block/menu_attach_block.module).
Notice: Undefined index: use_ajax in menu_attach_block_link() (line 98 of /sites/all/modules/menu_attach_block/menu_attach_block.module).
Notice: Undefined index: on_hover in menu_attach_block_link() (line 113 of /sites/all/modules/menu_attach_block/menu_attach_block.module).
Notice: Undefined index: use_ajax in menu_attach_block_link() (line 152 of /sites/all/modules/menu_attach_block/menu_attach_block.module).

Cameron Tod’s picture

Assigned: Unassigned » Cameron Tod
Status: Postponed (maintainer needs more info) » Needs work

If you go back to your menus and resave each one, this error should go away. I will write a little upgrade routine to do this automatically.

guillaumelevieux’s picture

Hello,

I have got the same problem as kristin.e has. Resave each menu doesn't seem to solve the issue.

Thank you for your help.

G.

  • cam8001 committed a7111e4 on 7.x-1.x
    Issue #2270465 by kyletaylored, cam8001: Notice: Undefined index:...
Cameron Tod’s picture

Status: Needs work » Needs review

OK - I have written a patch that should stop these notices. Please test this on the dev branch :)

http://cgit.drupalcode.org/menu_attach_block/commit/?id=a7111e4

kristin.e’s picture

Thanks @cam8001! The patch has gotten rid of those error notices :)

Cameron Tod’s picture

Status: Needs review » Fixed

Great :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.