I just created a view with one field -- the title linked to the node -- and one filter -- the "Node: Adv_taxonomy_menu Node ID Range" set to IN

The menus have a depth of 3

When I navigate to a link on the menu, everything works great (the page displays the right data in the right view), except this error appears at the top of the page:

Invalid argument supplied for foreach() in [localpath]\modules\adv_taxonomy_menu\adv_taxonomy_menu.inc on line 391.

--I almost would just like to suppress that error, since everything seems good -- all of the terms in the URL are valid...

Any thoughts on what might be happening?

Thanks

Comments

NewZeal’s picture

Are you sure you have the adv_taxonomy_menu filter in place, because that error is happening because the view has no filters to loop through.

NewZeal’s picture

I have added an array check to the script and uploaded to HEAD so you can download from the dev release in about 24 hours from when this comment is posted: http://drupal.org/node/600546/release . This will remove the error, but I suspect that you do not have the filter in place.

sjtout’s picture

Well -- to filter the view, I chose the + sign to add a filter, then selected 'Node' from the list of available options, then clicked the "Adv_taxonomy_menu Node ID Range" option, selected IN, and saved. The filters list says I have that filter selected... -- maybe there's another way to select it? It's actually the only filter in my test view, and in my 'production' view it's the last of 3 (published and a node type are the other two)...

I'll try the production build this evening & let you know

NewZeal’s picture

It sounds like you have done the right thing. It is possible something else is getting into the views filter array. I'll leave this issue thread open. Meantime the latest code at dev should remove the error but check that the View is working correctly and filtering for the specific nodes that apply.

sjtout’s picture

It works -- it was actually displaying the view correctly even before, but now it also doesn't show the error message. Thanks.

blowfly’s picture

THINK I SOLVED (maybe)
I had the same problem.
.
It took much time for me to figure out, that I have to use "Node: Adv_taxonomy_menu Node ID Range" filter.
first I made a view with args, with two displays: Default and Page. and with no filters.
-
This way I saw 2 (two!) such errors : Invalid argument supplied for foreach() in [localpath]\modules\adv_taxonomy_menu\adv_taxonomy_menu.inc on line 391.
And my view didnt work correctly - it showed ALL items..
-
Then I digged many forums and found that I have to use that fair filter.
I had choosen Page display, added that filter there.. and pressed button "update default display". The view begins to work - it begins to show only needed items.. das was gut, BUT ..
But I still see 1 (one) error: Invalid argument supplied for foreach() in [localpath]\modules\adv_taxonomy_menu\adv_taxonomy_menu.inc on line 391.
-
I had thought a while, looked at the 391 row in adv_taxonomy_menu.inc and added that fair filter to the Page display, using OVERRIDE button.
And there are no errors!!
/
think it is a bug while getting display parameters - the code doesnt handle the case when filter is added only to Default display.

NewZeal’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.