Error Notice: Undefined index: use_ajax in menu_attach_block_link()

Hello all customers,

When updating menu_attach_block you will see the error:

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

The error caused by property use_ajax in new version  menu_attach_block module was NOT used in our menu before. So, to fix this error, just go to open your menu and find menu item contains attach block and re-save.

Thank you.

Hi,

Just to clarify for others who come across this post:

  1. Open your menu's
  2. List the links for your menu
  3. Find the menu link that has 'Attached block: <blockname>'
  4. Click on the edit on the right hand side of the 'attached block' item.
  5. Hit 'save'

Dont click on the menu item itself and hit save, it wont fix the issue. You have to edit the menu link with the attached block.

Hope this helps!