Under certain circumstances, it seems that select2boxes and select2_bef stop the BEF setting from opening by breaking the ajax request.

The error i am receiving is:

AJAX HTTP error occurred.Result Code: 200
  Debugging information follows.
  Path: /admin/structure/views/ajax/display/{view_name}/{display_name}/exposed_form_options
  StatusText: OK
  ResponseText: Error: Call to a member function getType() on null in Drupal\\select2_bef\\Plugin\\views\\exposed_form\\BetterExposedFilters->getFieldType()
  (line 293 of /site/web/modules/contrib/select2boxes/modules/select2_bef/src/Plugin/views/exposed_form/BetterExposedFilters.php).

To reproduce this I have performed the following steps:

  1. Create a content type with an address field
  2. Create a view for the content type
  3. Add an exposed filter for Location (field_address:administrative_area) using: predefined country code (use any country), allow multiple selections. Save.
  4. Set the exposed form style to BEF
  5. Try to open the BEF settings. Fails with just a flash of the ajax icon.
CommentFileSizeAuthor
#5 3056522-4.patch1.45 KBnaresh_bavaskar

Comments

ominimo created an issue. See original summary.

ominimo’s picture

Issue summary: View changes
matsbla’s picture

Thanks for reporting, I can confirm the issue.
I think I had a similar problem to add date ranges.
I think maybe there is a challenge with fields that have several properties.

naresh_bavaskar’s picture

Assigned: Unassigned » naresh_bavaskar
naresh_bavaskar’s picture

StatusFileSize
new1.45 KB
naresh_bavaskar’s picture

Status: Active » Needs review
naresh_bavaskar’s picture

Assigned: naresh_bavaskar » Unassigned
matsbla’s picture

Status: Needs review » Postponed (maintainer needs more info)

Hi!
I think this should have been fixed in the last release, please upgrade to version 8.x-1.0-alpha4 and use Better Exposed Filter minimum version 8.x-4.0-beta2

Let me know if you still experience problems. Kindly close the issue if everything is okay!