Problem/Motivation
On a Drupal 10.6 installation, I had enabled the Facets Exposed Filters module which comes with the Facets module, and I set up a view with a number of Facets as exposed filters. They were working fine. When I tried upgrading to Facets 3.0.4, I got a bunch of "Broken/missing handler" notices in the view, and the facets themselves no longer worked on the View block.
It was discovered that Facets 3.0.4 removed the `facets_exposed_filters.module` file, and in turn, that removed the `facets_exposed_filters_views_data_alter()` function which implemented the hook discovery that Drupal 11.2 and later have, but Drupal 10.6 do not. Reverting to Facets 3.0.3 resolves my issue, at least temporarily.
Steps to reproduce
NOTE: This is as simplified as I can make this process in a bug report. There is documentation available linked from the project page that goes into further detail on how to use the Facets Exposed Filters submodule.
- Install Drupal 10.6
- Create a few nodes worth of content
- Install the Search API module and create a search index based on those nodes (NOTE: I'm using Solr for my search index, so you might try setting up an Apache Solr service and configuring an index with the Search API Solr module)
- Install and enable the Facets module (version 3.0.3 specifically)
- Enable the Facets Exposed Filters module
- Create a new Drupal View based on the search index
- Add a few facets as filters and expose them to the user
- Save the Drupal View
- Verify that things work as intended
- Upgrade Facets to 3.0.4
- Clear the Drupal cache
- Attempt to use your View page now - things should be broken
Proposed resolution
- Revert the change to Facets Exposed Filters that was introduced in 3.0.4 so that it behaves as it did in 3.0.3, at least with regards to the hook system?
Comments
Comment #2
joelpittetPlease review these two issues as they have the D10 compatible MRs you will need. Closing as a duplicate.
#3605291: facets_preprocess_facets_item_list() is broken in Drupal 11.2 and older
#3594309: Broken/missing handler after update to Facets 3.0.4: Restore facets_exposed_filters.module file and use LegacyHook for Drupal 10