Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have enabled module. Set up to be radio buttons and checkboxs in BEF and I got this error on page rendered by views. I set exposed form to be separate block.
This is error form latest 7 stable release:
Notice: Undefined index: #options in better_exposed_filters_exposed_form_plugin->exposed_form_alter() (line 752 of C:\xampp\htdocs\va\sites\all\modules\better_exposed_filters\better_exposed_filters_exposed_form_plugin.inc).
Warning: Invalid argument supplied for foreach() in better_exposed_filters_exposed_form_plugin->exposed_form_alter() (line 752of C:\xampp\htdocs\va\sites\all\modules\better_exposed_filters\better_exposed_filters_exposed_form_plugin.inc).
Error with latest 7 dev:
Notice: Undefined index: #options in better_exposed_filters_exposed_form_plugin->exposed_form_alter() (line 1041 of C:\xampp\htdocs\va\sites\all\modules\better_exposed_filters\better_exposed_filters_exposed_form_plugin.inc).
Warning: Invalid argument supplied for foreach() in better_exposed_filters_exposed_form_plugin->exposed_form_alter() (line 1043 of C:\xampp\htdocs\va\sites\all\modules\better_exposed_filters\better_exposed_filters_exposed_form_plugin.inc).
- Separate block - enabled/disabled - still error
- Radio buttons and checkboxs/Nested radio buttons and checkboxs - still error
- Allow/Disallow multiple values - still error
- I use 2 ajax autocomplete for taxanomy content fields on form block - after BEF one did not render
Let me know if do you need more config info.
Update:
I wanted to do after/before printscreen, so set up everything without BEF and then set up view back to BEF state and error disappear. Strange, but seem that it is working.
Comments
Comment #0.0
jasom CreditAttribution: jasom commentedva edit
Comment #0.1
jasom CreditAttribution: jasom commentedd7 error
Comment #0.2
jasom CreditAttribution: jasom commentededit beter
Comment #0.3
jasom CreditAttribution: jasom commentedupdate meeesga
Comment #1
vanvemdenHad the same error for a field set in BEF to 'Check boxes/Radio buttons'. Under the view's FILTER CRITERIA, I had the filter field set to filter type 'Autocomplete' (look under Settings). After I changed Autocomplete to Dropdown, the error disappeared.
Comment #2
mikeker CreditAttribution: mikeker commentedThe real issue is that BEF settings are available for a filter using the autocomplete widget... I'll look into that.
Thanks for the bug report.
Comment #3
mikeker CreditAttribution: mikeker commentedFixed.
Comment #5
mikeker CreditAttribution: mikeker commentedComment #5.0
mikeker CreditAttribution: mikeker commentedUpdate