I can't configure or use this module in D7 (but am eager to use it :)

I installed the module and get this warning:

Warning: Invalid argument supplied for foreach() in _block_rehash() (line 386 of /var/www/vhosts/XXX/subdomains/ww7/httpdocs/modules/block/block.module). The warning goes away if I remove the megamenu files.

I cleared cache, but still the only options I see for megamenu are Help (readme file) and general permissions - no configuration link in modules or anywhere under structure/blocks or configuration.

I'm using Omega html5 and rubik (admin) themes, if that matters.

Comments

TrevorG’s picture

I get the same.

Warning: Invalid argument supplied for foreach() in _block_rehash() (line 385 of /var/www/drupal/modules/block/block.module).

Hosting on my localhost using Bartik but a lot of modules.

JamesH-2’s picture

I too have the same issue, same error message. I have tried moving the directory between 'sites/all/modules' and 'sites/default/modules' and that didn't resolve (not that I expected it would).

Using Zen and no other modules.

Anonymous’s picture

Status: Active » Closed (duplicate)

This issue appears to be a duplicate of #1056234: Invalid argument. JohnAlbin has fixed the megamen_block_info() so that it correctly returns an empty array when there are no blocks enabled. That takes care of the error message you see.

Anonymous’s picture

This also appears to be a duplicate of #1055852: Megamenu does not appear in Configuration