Community

fix Invalid argument supplied for foreach() /includes/menu.inc error

hi
i install megqmenu module and use this for primary menus,after disabling of this module i take line errors in all page of mysite.

warning: Invalid argument supplied for foreach() in /home/user/public_html/includes/menu.inc on line 745.

what's happened that i see this hook_menu error?i unistall this module,drop table of megamenu,or disable menu module and... restore backup ... but i have this errors still now ... why?

regards

Comments

After uninstall you should

After uninstall you should clear caches. That might fix the problem.

done

John_B dear
i try all of this ways and edit primary menus and delete all of menu items , then create menu items , this action have a good consequence and 2line errors are fix at last.

regards

Good to hear Drupal users in

Good to hear Drupal users in Iran :-)

Jeff's suggestion of simply clearing caches may have worked, and is always the first thing to try when a menu item is missing, for example if a module you have just installed does not show up. I am not sure whether your Admin menu was from the Toolbar in Drupal Core, or from Administration Menu module. The latter has a nice cache clear button top left (?top right in RTL). You can also do it with drush, which you should get if you do not already use it.

these error lines is about

these error lines is about hook_menu performance.i edite menu items and rebuild those . errors are not beeing shown now...

it's wonderful.

I have the same problem i did

I have the same problem i did all what said but no thing fix the message still show up

nobody click here