Does not work for me with Solr

Created on 16 October 2024, 6 months ago

Problem/Motivation

Does not work for me with Drupal 10.3.6, Search API 1.35, Search API Solr 4.3.5, Solr 9.7.0.

When I open the facet view page i get:

Error: Call to a member function getProcessor() on null in Drupal\facets_date_range\Plugin\facets\processor\DateRangeProcessor->build() (line 81 of modules/contrib/facets_date_range/src/Plugin/facets/processor/DateRangeProcessor.php).

I looked in the debugger there is no "url_processor_handler' on my facet.

Thanks for your help :).

Karsten

πŸ’¬ Support request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany k4v

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

Comments & Activities

  • Issue created by @k4v
  • πŸ‡©πŸ‡ͺGermany k4v
  • πŸ‡ΊπŸ‡ΈUnited States johnny5th

    @k4v

    I've run into the same thing. Based on the comment here https://www.drupal.org/project/facets/issues/3494590#comment-15915745 πŸ› Error on view after adding a Facet Exposed Filter Active I'm thinking this module hasn't been updated to handle facets as exposed filters, and they talked about the recommendation of just using non-facet exposed filters for the field. That's what i'm doing now, and it at least makes the view functional.

  • πŸ‡ΊπŸ‡ΈUnited States simplyshipley

    Here's a patch that I recently created for a project that I updated from Facets 3.0beta1 to Facets 3.0. It works for my simple implementation of exposing a relative date filter with 3 options. It needs some work on the Ajax for the config form to get it to dynamically add new relative date field sets using the "Add more" functionality. I spent some time trying to figure it out, but I there's a core bug in views forms that use Ajax where the incorrect config form gets passed, so it's not a straightforward task. I'll find the views core issue and add a link shortly.

    I ended up just adding a new number field to the form to store the number of relative date range options needed. You just set the count then save and reopen the form and that number of field sets are available. I intend to create a MR for this issue, but I've not had the time to do so.

  • πŸ‡ΊπŸ‡ΈUnited States simplyshipley
  • πŸ‡ΊπŸ‡ΈUnited States simplyshipley

    Removed the patch file I uploaded to the wrong issue.

Production build 0.71.5 2024