- Issue created by @kksandr
- Issue was unassigned.
- Status changed to Needs review
6 months ago 2:32pm 29 May 2024 - Status changed to RTBC
3 months ago 12:35pm 21 August 2024 - 🇺🇸United States smustgrave
+1 for this. It was reported in 🐛 Nondescript error when trying to edit Exposed Form Style settings in view Active guess we can technically remove the typehints but would like to keep them if possible
- 🇺🇦Ukraine zegmant
the same on 7.0.1
php8.3.10
D10.3.2tried to set select2 in bef via direct editing of views config (for field_country_target_id filter)
exposed_form: type: bef options: submit_button: Apply reset_button: true reset_button_label: Reset exposed_sorts_label: 'Sort by' expose_sort_order: true sort_asc_label: Asc sort_desc_label: Desc text_input_required: 'Select any filter and click on Apply to see results' text_input_required_format: null bef: general: autosubmit: false autosubmit_exclude_textfield: false autosubmit_textfield_delay: 500 autosubmit_hide: false input_required: false allow_secondary: false secondary_label: 'Advanced options' secondary_open: false reset_button_always_show: false sort: plugin_id: default filter: combine: plugin_id: default field_country_target_id: plugin_id: bef_select2 advanced: placeholder_text: 'Country' rewrite: filter_rewrite_values: '' filter_rewrite_values_key: false collapsible: false collapsible_disable_automatic_open: false is_secondary: false
when viewing the page frontend it goes into the same error:
Fatal error: Declaration of Drupal\select2\Plugin\better_exposed_filters\filter\Select2::defaultConfiguration() must be compatible with Drupal\better_exposed_filters\Plugin\better_exposed_filters\filter\FilterWidgetBase::defaultConfiguration(): array in /var/www/unh-new/web/modules/contrib/select2/src/Plugin/better_exposed_filters/filter/Select2.php on line 74
changing
public function defaultConfiguration(): array {
topublic function defaultConfiguration() {
gives no reluslts - 🇧🇪Belgium JeroenT 🇧🇪
🐛 Compatibility with Better Exposed Filters 7 RTBC is a duplicate of this issue.
- 🇨🇦Canada endless_wander
Patch in https://www.drupal.org/project/select2/issues/3482698#comment-15827078 🐛 Select2 Plugin is not compatible with BEF plugin Active fixes this issue for me in BEF 7.*