Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.0-alpha1
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Jan 2011 at 02:16 UTC
Updated:
13 Mar 2011 at 14:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
Bright Web Design commentedSorry for the trouble. I fixed the issue.
Comment #2
Bright Web Design commentedPlease help,
I thought this was fixed by myself but this same error comes up again.
Notice: Undefined variable: value in views_many_to_one_helper->add_filter() (line 868 of C:\xampp\htdocs\wacom\sites\all\modules\views\includes\handlers.inc).Please see the above comment and screen shot.
Thanks in advance.
Comment #3
LaurenH commentedNotice: Undefined variable: value in views_many_to_one_helper->add_filter() (line 868 of /sites/all/modules/views/includes/handlers.inc).I get this error as well... two instances (I suppose because I use a couple of view blocks). My site also appears to be functioning without issue, but obviously I do not want these notices popping up and would like to figure out what's going on. :-/
Comment #4
dawehnerMove this issue to "normal".
A notice is not an warning and not an error. For example in drupal6 notices weren't displayed at all.
Comment #5
dawehnerIs this still the case for the dev version of views?
Comment #6
Bright Web Design commentedIt happens with all versions of views. This happens only if you have multiple blocks from a same view.
First I thought it was a quick tab issue. because in quick tab version 7 maximum number of tabs are 3 and if I wanna more tabs first we have to save and then add another tab again. (I know it's a bug on Quick Tabs).
I always test all most important and most used modules, in different conditions to make sure it's perfect in all conditions.
Best wishes for your development works.
Comment #7
dawehnerSo can someone provide a way to reproduce the problem?
It's hard to fix problems if you don't know when they exist.
Comment #8
Bright Web Design commentedThis is how I got this error message
Step One
Step Two
Step Three
I don't remember whether I have done anything more to produce this error.
Hope this info helps you.
Best Wishes
Comment #9
Hans Vanpee commentedI have the same problem when creating a view with page display and a filter on taxonomy (term id, 'is all of', selected two terms in the list).
I tried this on two different sites (Drupal 7) and I get the same warning.
Comment #10
DeweyOxberger commentedI'm getting it too:
Notice: Undefined variable: value in views_many_to_one_helper->add_filter() (line 868 of /home/develop/public_html/sites/all/modules/views/includes/handlers.inc).
I started with a clean install, defined three vocabularies (Status, Product, Assignee) with about six terms each.
Then built the view following this great help: http://drupal.org/node/1043784#comment-4027132
It creates a view with Arguments-Taxonomy ID, Taxonomy ID and , and +, multiple allowed.
Makes a page.
Then added two fields to the view (one for Node Title, one for Taxonomy: All Terms).
When I do a /test/14+27 url I get no error.
When I do a /test/14,27 I get the error.
Comment #11
DeweyOxberger commentedBug - but since I'm a noob I have no idea what the correct answer is here:
Note that in the failing cases $forumla = "and" and the logic nevers sets a value for $value in that case.
Comment #12
dawehnerI guess this should be set.
Comment #13
DeweyOxberger commentedHere is a hack that seems to work - but I know next to nothing about SQL.
THIS NEEDS REVIEW BY A SMART PERSON!
Modify handlers.inc to be:
It all comes down to a WHERE in the sql. This code will produce SQL like:
This might not work in every case.
Comment #14
santini commentedThanks jonb_cirris - it works for me (#13) :-)
Comment #15
DeweyOxberger commentedComment #16
dawehnerPlease post a patch.
Comment #17
hexabinaerIn case this finding can be of any help:
I have a users view with 2 filters:
- User: Roles = custom_role1
- User: Active Yes
Originally I selected 2 roles and checked "Reduce duplicates". Later I deselected the second role but oversaw the "duplicate" checkbox. That was where the notice mentioned above came in.
Unchecking "duplicated" made the notice disappear.
Comment #18
anselm.marie commentedIt seems like the issue is fixed in views-7.x-3.x-dev.
Comment #19
DeweyOxberger commentedI did a get from cvs, traced through it and it appears to work now. The fix is not what was listed above.
Comment #20
turek commentedIf you still working on alpha1, here is a patch.
Comment #21
dawehnerCommited to the dev version.