- Issue created by @banoodle
- π¬π§United Kingdom scott_euser
Hi! Can you try debugging in the Hooks folder at the ::handleFloodProtection() method? That's all the logic there that affects the View filters.
I'm not sure if this is a bug or if I am using this module for a scenario it is not intended to support.
I have a search index view configured called Search. It has 5 displays (search, faculty directory, news, publications, resources). The Search display has an exposed keyword search which we expose in the global header when someone clicks on the magnifying glass. All of the views have facets for various taxonomy vocabulary terms. Normally, this works OK, even if you are on one of the other search displays like /publications when you do a global search.
But with this module installed, Drupal gets confused. If I am on the /publications page and I filter for a topic or two, it works OK. But if while I'm on the /publications page with the filtered results, I use the global header search form to search for a term, Drupal appends the search parameters from the topic filter on the publications page onto the search query parameters (e.g., /search?keywords=bears&research_area=adhd
) which does not compute (the search view doesn't have a research_area facet). This results in a memory error.
Perhaps this should be filed as a separate issue, but I also saw intermittent memory errors just staying on /publications and adding filters & selecting facets. I tried quite hard to reproduce these problems on the main branch (where I haven't installed this module yet), but it never seems to merge query strings in URLs or produce a memory error.
1) Install the following:
2) Configure:
3) Create content:
4) Go to Publications view on the front end. Select some research area facets (2 should be enough).
5) This should filter OK.
6) Without clearing the facets or navigating elsewhere, use the keyword search form in the global header to search for a term (e.g., "bears").
7) You will likely get a memory error here. If you look at the URL you will see /search?keywords=bears&research_area=yourterm - this won't work because there are is no facet for research area associated with the search view.
Active
1.0
Code
Hi! Can you try debugging in the Hooks folder at the ::handleFloodProtection() method? That's all the logic there that affects the View filters.