Hi,
the drupal report are still repeating this mistake:
Invalid argument supplied for foreach() in file ../includes/menu.inc on line 743.
I use the latest version of Drupal 6.14.
Anyone know why Drupal repeating this error ?

Comments

fauskanger’s picture

I don't know why it happened, but it appeared at my site as well when I played around with Taxonomy Menu. When I moved the menu root (of the taxonomy menu module) for one of my applied taxonomies, another error message appeared - though the same. So that gave me a clue that it was related with the parent menu. (I use Drupap 1.16, and) menu.inc line 743's foreach function is a part of the menu tree constructor or something.

I deleted (and later re-created) the menu items which I had been using for parent menu items for the taxonomy menu from the admin/build/menu-customize/MENU_NAME page and the error messages disappeared one after the other as I deleted the menu items.

I have no clue if this is even slightly related to your issue, but I hope this may be of use. Good luck and I hope the issue resolves.

~Thomas

Foxhaven’s picture

I also had this problem.

I created menu items for some views I wanted available in a couple places. I experimented with having several be children of another, but didn't like it. I put them back in the root level of the Navigation menu and started getting that error.

After that it didn't matter what I did - even trying them in the parent-child config again - apparently the menu object, once given a child, remembers that it has a child even when it doesn't. I don't know that that is what's happening, but it seems to be.

Delete the menu items and recreate them without any hierarchy.

I'd be interested in learning what's really going on :-)

alexbk66-’s picture

I created an empty vocabulary and assigned it to the Primary links menu. Got the same error.

The first item in the generated menu didn't have any Title or Path. Deleting the first item (http://drupal.org/node/245930#comment-3177162) fixed the problem.