Hi there... i ran into this bug when attempting an end result of Primary links being created from terms horizontally across my top nav.
I have Views installed and if i enable: Default Node view: taxonomy_term (default)
I get:
# warning: Invalid argument supplied for foreach() in /var/www/dstic.com/sites/all/modules/views/includes/handlers.inc on line 807.
# warning: Invalid argument supplied for foreach() in /var/www/dstic.com/includes/common.inc on line 1597
If i disable Taxonomy menu and flush caches, then the error goes away.
On a side note, i am also using pathauto but with pathauto disabled i can reproduce the above so i dont think it's related (buy maybe worth mentioning).
Any ideas how to fix this?
thank you for a very useful module.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | views_invalid_argument.patch | 392 bytes | fernao |
Comments
Comment #1
indytechcook commentedThanks, I'll take a look.
Comment #2
indytechcook commentedThis is fixed in the newest version. Sorry, some untested code found it's way into the stable release.
Comment #3
zigx commentedwow, thanks for such a quick fix!
Comment #5
Hadrien KOHL commentedSame issue with 2.3 version.
Comment #6
jvieille commentedSubscribe
Change issue setting back to active
Comment #7
jvieille commentedComment #8
fernao commentedsame here :/
even when I delete the view, the message still appearing...
but we're using 6.x-2.5
Comment #9
fernao commentedI've looked at line 807 and realized that an array was coming with no values... and was just passing, directly, right to the foreach (what raises a php error).
So, I've created a patch for that case, because the error handling at line 802 was letting this case to go on, empty...
I simply took off the $str var check of that line, because all the times it was filled, but not the array...
Well, for me, it worked.
[]s
Comment #10
indytechcook commentedfernao, that's patching views. Has anyone looked in that module for an issue? There is no direct integration between Taxonomy Menu and views. Taxonomy Menu just creates the URL and then Views does everything else.
Sorry I've been MIA. Can one of you give me a more detail explanation of your setup of taxonomy menu and the view so I can attempt to reproduce.
Comment #11
Heilong commentedHi everyone,
I got the same problem after activating the default view taxonomy_term.
Here are the errors I got :
* warning: Invalid argument supplied for foreach() in (...)/sites/all/modules/views/includes/handlers.inc on line 807.
* warning: Invalid argument supplied for foreach() in (...)/includes/common.inc on line 1606.
* warning: Invalid argument supplied for foreach() in (...)/sites/all/modules/views/includes/handlers.inc on line 807.
* warning: Invalid argument supplied for foreach() in (...)/includes/common.inc on line 1606.
By the way I disabled and uninstalled the Pathauto and Taxonomy menu module, and I still have the warnings displayed.
Then I disabled the taxonomy_term default view and the warnings disappeared. So, I exported the same view from a previous drupal installation, when I saved the view, the menu generated by taxonomy menu disappeared.
Taxonomy menu : V 6.x-2.3
Views : V 6.x-2.5
Pathauto : 6.x-1.1
Comment #12
fernao commentedsorry, I'm posting in a wrong forum, because I'm not usign taxonomy menu... but I think this can be passed to views...
really sorry.
Comment #13
k3vin commented+1
Comment #14
indytechcook commentedThis issue was with the views module not taxonomy menu. @fernao, did you ever get what you needed
Comment #15
startuplab commentedI'm having this same exact problem: here are my errors
* warning: Invalid argument supplied for foreach() in /home/content/04/4760604/html/modules/acquia/views/includes/handlers.inc on line 807.
* warning: Invalid argument supplied for foreach() in /home/content/04/4760604/html/includes/common.inc on line 1607.
* warning: Invalid argument supplied for foreach() in /home/content/04/4760604/html/modules/acquia/views/includes/handlers.inc on line 807.
* warning: Invalid argument supplied for foreach() in /home/content/04/4760604/html/includes/common.inc on line 1607.
It appears that when i disable the taxonomy_term view that the errors go away.
Can anyone help?
Comment #16
startuplab commentedPlease! Anyone?????
Comment #17
startuplab commentedAnybody out therrrrrrrrrrrrrrrrrrrrrreeeeeeeeeeeeee?
Comment #18
indytechcook commentedstartuplab, please read through the comments are see that it's an issue with views and not taxonomy menu. There is a patch on comment #9 that may be able to help.
THis issue has been marked as won't fix because it's an issue with views. Please pursue this issue there.
Comment #19
emilyf commenteddid anyone here post this to views? if so, link please?
Comment #20
emilyf commentedhere's another similar issue actually posted to views in case anyone needs it: http://drupal.org/node/407538