Problem/Motivation
Since I migrate my website to Drupal 10, I've had views that no longer work properly.
My views have exposed fields with multiple selections allowed. If the ajax option is activated, the view works and displays the filtered results. If I deactivate the ajax option, the view returns nothing and generates an error. The error in the logs is as follows:
ymfony\Component\HttpKernel\Exception\BadRequestHttpException: Input value "type" contains a non-scalar value. in Symfony\Component\HttpKernel\HttpKernel->handle() (line 83 of /app/devs/vendor/symfony/http-kernel/HttpKernel.php).
Steps to reproduce
See attached screenshot.
Proposed resolution
It seems that Symfony 6 no longer allows you to retrieve a non-scalar value from the InputBag. If you're trying to get an array value from there, you have to use the ->all() method. (solution issued from the following issue https://www.drupal.org/project/simple_media_bulk_upload/issues/3370657)