Compability issue with BEF 6.0.5

Created on 22 April 2024, 8 months ago
Updated 9 May 2024, 8 months ago

Problem/Motivation

When upgrading BEF from 6.0.3 to 6.0.5 this error comes

TypeError: Drupal\better_exposed_filters\Plugin\views\exposed_form\BetterExposedFilters::__construct(): Argument #8 ($element_info) must be of type Drupal\Core\Render\ElementInfoManagerInterface, Drupal\Core\Config\ConfigFactory given, called in /(...)/modules/contrib/vefl/modules/vefl_bef/src/Plugin/views/exposed_form/VeflBef.php on line 85 in Drupal\better_exposed_filters\Plugin\views\exposed_form\BetterExposedFilters->__construct() (line 84 of /(...)/modules/contrib/better_exposed_filters/src/Plugin/views/exposed_form/BetterExposedFilters.php) 

Steps to reproduce

Install BEF 6.0.5 and Vefl 3.1

I have tried these patches, but none solves it 🐛 Compability issue with BEF 6.0.3 Needs review and 🐛 TypeError: Illegal offset type in isset or empty Needs review .

🐛 Bug report
Status

Active

Version

3.1

Component

Code

Created by

🇵🇹Portugal jrochate

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

Comments & Activities

  • Issue created by @jrochate
  • 🇩🇪Germany Rikibu

    I can confirm that behavior with these module versions too.

  • 🇬🇧United Kingdom Tim Corkerton

    I have Better Exposed Filters 6.0.5 and Views exposed form layout 8.x-3.1
    I have tried these two patches
    https://www.drupal.org/project/vefl/issues/3161777 🐛 Compability issue with BEF 8.x-5.0 and BEF 6.0.3 RTBC
    https://www.drupal.org/project/vefl/issues/3385119 🐛 Compability issue with BEF 6.0.3 Needs review
    with no success

    I have this error when module is unpatched:
    ArgumentCountError: Too few arguments to function Drupal\better_exposed_filters\Plugin\views\exposed_form\BetterExposedFilters::__construct(), 6 passed in /var/www/web/modules/contrib/vefl/modules/vefl_bef/src/Plugin/views/exposed_form/VeflBef.php on line 78 and exactly 8 expected in Drupal\better_exposed_filters\Plugin\views\exposed_form\BetterExposedFilters->__construct() (line 84 of modules/contrib/better_exposed_filters/src/Plugin/views/exposed_form/BetterExposedFilters.php).

  • 🇩🇪Germany Rikibu

    In the mean time BEF 6.06 was released. The issue is still there.

Production build 0.71.5 2024