I can't edit the mega menu in my site anymore. If I click on the small pencil icon of a menu item, the popup dialogue comes up, but the waiting animation never ends ... In the developer console of Chrome, the following error is shown:
Uncaught TypeError: Cannot read property 'essential' of undefined
at Object.essentialItems (js_-AeHBfL_CsrUX7RhGOLDiwDv5t7BzxiAfeWcXFXtyq0.js:301)
at HTMLAnchorElement.<anonymous> (js_-AeHBfL_CsrUX7RhGOLDiwDv5t7BzxiAfeWcXFXtyq0.js:189)
at HTMLDocument.Ka (js_Xjzh1hVfcgVAixhmmB6Go8TUMPOiprA-2vkC-oWXARQ.js:19)
at HTMLDocument.handle (js_Xjzh1hVfcgVAixhmmB6Go8TUMPOiprA-2vkC-oWXARQ.js:64)
at HTMLDocument.o (js_Xjzh1hVfcgVAixhmmB6Go8TUMPOiprA-2vkC-oWXARQ.js:57)
This line is in file "md.menu-item.js" (line 177):
$.post(Drupal.settings.mdMenu.essential, data ,function(html) {
Could it be, that the new dev version that you have sent me some weeks ago, has a bug? Is "essential" missing?
Regards,
Oliver
Hi,
Please check your mailbox.
Thank you.
Please note that, you need to uncheck "Aggregate JavaScript files" to find js errors in files, then you can check as below:
Problem comes from overlay-child.js. You can please deactive module overlay or contact module author for support.
The mentioned JavaScript file is a core Drupal file: "\modules\overlay\overlay-child.js". Why should I deactive module overlay for configuring MegaMenu? All administration in Drupal is done with overlays without any problem ... I think, this could be a problem with building the URL (see the comment of the JS function: "By default, forms are assumed to keep the flow in the overlay. Thus their action attribute get a ?render=overlay suffix."
Another user had the same problem - see http://megadrupal.com/comment/12914 . What solution have you found for him?
Regards,
Oliver
Normally we do not support problem that comes from other modules. However, our developer found a solution for you:
Below code is in module overlay:
you can see action=undifined, so action.index0f does not run. So we must fix by adding new function in megamenu to make overlay work
Please check your site.
Many thanks. It's working now. Great support!!!