I also installed DHTML Menu (http://drupal.org/project/dhtml_menu) in my site.

But it show too many error that can not being coupe with this module.

Can somebody repair this error?

Comments

klonos’s picture

Component: Miscellaneous » Code
Category: support » bug

I see no errors, but the DHTML menu's effects stop working when I enable the Menu Icons module. Disabling Menu Icons re-estates the menu slide effect.

lort’s picture

I got an error.

warning: Invalid argument supplied for foreach() in /path/to/www/sites/all/modules/dhtml_menu/dhtml_menu.module on line 175.

modules:
taxonomy_menu ( I dnt think that this module is involved in anything else than creating the menu and keeping it synchronized with my taxonomy vocab.)
dhtml_menu
menu_icons

err. produce action:
added an image to the menu being generated by taxonomy_menus.
dhtml_menu settings make no difference.

dhtml_menu.module code where err indicates:
175 foreach ($index[$item['mlid']]['parents'] as $mlid) {
176 $key = $index[$mlid]['key'];
177 if (!isset($tree[$key])) {
178 return array();
179 }
180 $tree = $tree[$key]['below'];
181 }

it has something to do with the $index array. when image is added the array's content seem to disappear. i've only taken a really quick look so i may be wrong. u can check it out with drupalforfirebug. hope these help.

hefox’s picture

The current .module in cvs seems to fix this; it removes the registry alter which is conflicting with dhtml_menu. Not sure why it isn't in the stable sine it was added before the last stable.

skilip’s picture

Status: Active » Fixed

The hook implementation of hook_theme_registry_alter is removed form release 6.x-2.1.

Status: Fixed » Closed (fixed)

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