Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
I was blank when I submitted the issue, but in the meantime I realized that a warning from enabling a view should be related to its calling.
As I was not doing anything, the culprit should be the Taxonomy Menu: Bingo - I ticked "Select to rebuild the menu on submit" and the warning vanished.
I apologize for the disturbance.
I redirected the issue to the correct :) module - nothing to do with Views
For me, Taxonomy menu works, if it is added to Navigation menu. If added to Primary menu, then this error occurs: warning: Invalid argument supplied for foreach() in C:\wamp\www\test.net\includes\menu.inc on line 743.
EDIT: For me it looks solved. Problem was in DHTML menu, I had to turn it off for Primary menu.
Good day I am trying to create and hierarchical select menu with vocabularies using taxonomy menu.
I have done exactly this with the example below however I keep getting this error any ideas maybe I have missed something. I have also tried ver. 2.9 and dev version but the error continues.
warning: Invalid argument supplied for foreach() in C:\wamp\www\ includes\common.inc on line 1647.
Menu Galleries
Vocabulary Galleries
terms Zanzibar Gallery
Mauritius Gallery
South Africa Gallery
Hi all. I've encountered the exact same problem - can recreate every time: I install "taxonomy menu" and enable a certain vocabulary in primary links. This leads to "warning: Invalid argument supplied for foreach() in [path]/includes/menu.inc on line 743.". The only way to make this error disappear is to do the following in the DHTML menu module: Under "Menus without DHTML" make sure the "navigation" is ticked. Needless to say this is not what anyone who uses the DHTML menu module wants. It's 100% recreatable on my drupal installation (latest 6.20). Have tried both the 2.9 and 2.x dev version - same issue. Rebuild on submit option doesn't help.
I get same error when managed Primary links menu using drag-n-drop. Error apeared after moving all submenu items from one parent item to another. I think the problem apears when parent menu item lost all sub items. The fix is to add new sub item and then delete it.
Comments
Comment #1
dawehnerCan you report whether you have installeThis means basicad some extra modules? Can you reproduce this on a clean drupal with just views installed?
Comment #2
jvieille commentedFound the problem!
I was blank when I submitted the issue, but in the meantime I realized that a warning from enabling a view should be related to its calling.
As I was not doing anything, the culprit should be the Taxonomy Menu: Bingo - I ticked "Select to rebuild the menu on submit" and the warning vanished.
I apologize for the disturbance.
I redirected the issue to the correct :) module - nothing to do with Views
Comment #4
jdln commentedIm having the same problem even if I rebuild my taxonomies. Ive tried deleting all my taxonomies but the problem persists!
Thanks
Comment #5
eL commentedSame problem, in DEV version too.
Comment #6
dstolComment #7
lulyx commentedI changed the menu location for my taxonomy menu items, refreshed it and the problem was gone.
Comment #8
eL commentedFor me, Taxonomy menu works, if it is added to Navigation menu. If added to Primary menu, then this error occurs: warning: Invalid argument supplied for foreach() in C:\wamp\www\test.net\includes\menu.inc on line 743.
EDIT: For me it looks solved. Problem was in DHTML menu, I had to turn it off for Primary menu.
Comment #9
Road Kill commentedGood day I am trying to create and hierarchical select menu with vocabularies using taxonomy menu.
I have done exactly this with the example below however I keep getting this error any ideas maybe I have missed something. I have also tried ver. 2.9 and dev version but the error continues.
warning: Invalid argument supplied for foreach() in C:\wamp\www\ includes\common.inc on line 1647.
Menu Galleries
Vocabulary Galleries
terms Zanzibar Gallery
Mauritius Gallery
South Africa Gallery
Comment #10
Road Kill commentedOkay I realised that you have to bring in the terms in to the vocabulary before enabling the vocabulary on the menu location. This solved the error:).
Comment #12
miket3 commentedI started receiving this message after installing Taxonomy Menu Module. I cleared all caches. I removed all vocabularies.
And Now I am trying to start from scratch creating a new vocabulary. And this warning is displayed as soon as I click on the Add Vocabulary" tab.
Comment #13
rv0 commentedsame issue here
fixed after rebuilding it all manually
Comment #14
thomas1977 commentedHi all. I've encountered the exact same problem - can recreate every time: I install "taxonomy menu" and enable a certain vocabulary in primary links. This leads to "warning: Invalid argument supplied for foreach() in [path]/includes/menu.inc on line 743.". The only way to make this error disappear is to do the following in the DHTML menu module: Under "Menus without DHTML" make sure the "navigation" is ticked. Needless to say this is not what anyone who uses the DHTML menu module wants. It's 100% recreatable on my drupal installation (latest 6.20). Have tried both the 2.9 and 2.x dev version - same issue. Rebuild on submit option doesn't help.
Comment #15
Jimmel commentedThis was fixed for me once I disabled the DHTML for taxonomy-menu in the DHTML configuations. Any patch available?
Comment #16
artreaktor commentedI get same error when managed Primary links menu using drag-n-drop. Error apeared after moving all submenu items from one parent item to another. I think the problem apears when parent menu item lost all sub items. The fix is to add new sub item and then delete it.
Comment #17
leilyrken commentedFixed the same way. Thanks
Comment #18
dstolClosing due to inactivity.