Filter by Taxonomy Term - Can anyone advise?

Created on 15 March 2011, about 14 years ago
Updated 7 February 2023, about 2 years ago

For the first time in my 3 year use of Drupal I have a site that needs to filter by taxonomy term and after days of trial and error and searching and applying patches I'm pretty confused - not sure whether it's my ignorance that is the problem or bugs in views.

I have a vocabulary "Section" with a single level list of terms (Section 1, Section 2, Section 3 etc.). I have created a set of views that need to filter using "Section" i.e. News for Section 1, News for Section 2 etc. I have tried:

  • but get duplicates of every entry (with and without the reduce duplicate box ticked) and the following strict warnings: Strict warning: Declaration of views_handler_filter_term_node_tid::value_validate() should be compatible with that of views_handler_filter::value_validate() in require_once() (line 6 of .....\sites\all\modules\views\modules\taxonomy\views_handler_filter_term_node_tid.inc).
    Strict warning: Non-static method views_many_to_one_helper::option_definition() should not be called statically, assuming $this from incompatible context in views_handler_filter_many_to_one->option_definition() (line 23 of .......sites\all\modules\views\handlers\views_handler_filter_many_to_one.inc).
  • - duplicates again, but no warnings.
  • works on some views, but on others it renders an empty view. On all views I get strict warnings: Strict warning: Declaration of views_handler_filter_term_node_tid::value_validate() should be compatible with that of views_handler_filter::value_validate() in require_once() (line 6 of ......\sites\all\modules\views\modules\taxonomy\views_handler_filter_term_node_tid.inc).
    Strict warning: Declaration of views_handler_filter_term_node_tid_depth::operator_options() should be compatible with that of views_handler_filter_in_operator::operator_options() in require_once() (line 8 of .....\sites\all\modules\views\modules\taxonomy\views_handler_filter_term_node_tid_depth.inc).

I have posted an issue about the errors with the Taxonomy term id with depth already (http://drupal.org/node/1090888), although since then I have begun to wonder whether that's the wrong filter for me to use anyway in these circumstances hence this post (not an attempt to bump).
I would be very grateful for some guidance about which filter I should be using and what, if anything, I may have done to render it non-workable, or is there a bug?
Many thanks.

💬 Support request
Status

Closed: duplicate

Version

3.0

Component

Miscellaneous

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024