The error Notice: Undefined index: #multiple in Drupal\Core\Render\Element\Select::processSelect() is reported when displaying an exposed form block from a view with a simple grouped filter (view and block configuration files attached).

The error is coming from line https://git.drupalcode.org/project/drupal/-/blob/8.8.6/core/lib/Drupal/C.... This method is called because processSelect is added to the #process array here: https://git.drupalcode.org/project/better_exposed_filters/-/blob/8.x-4.0....

Thanks

Comments

davide.porrovecchio created an issue. See original summary.

josh.stewart’s picture

I ran across this today and for whatever reason a Published Status filter had been added to the view as exposed. Removing it got rid of the issue for me. I hope this helps you.

etroid’s picture

This should be resolved as part of https://www.drupal.org/project/better_exposed_filters/issues/3131580 Let me know if you are still encountering the same issue in the latest dev version!

davide.porrovecchio’s picture

Status: Active » Fixed

I can confirm this bug is fixed in 8.x-4.0-beta2.

Thanks a lot.

Ruedische’s picture

Sorry, but I cannot confirm that this bug has been fixed (tried also latest dev).

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

brooke_heaton’s picture

This bug still very much exists. I'm getting it on 8.x-5.0-beta1. Please reopen.

patrick.thurmond@gmail.com’s picture

I am running into errors with this as well. I will see if I can create a patch as soon as I understand what is going on.

The error I get is "Notice: Undefined index: #multiple in /var/www/docroot/core/lib/Drupal/Core/Render/Element/Select.php on line 128". I am running Drupal 8.9.9.

patrick.thurmond@gmail.com’s picture

We are not using Chosen yet still having this problem. It might be related, but no one has a fix for it yet.

unstatu’s picture

I had this problem as well. This patch should fix it.

thomwilhelm’s picture

Still getting the same error using 8.x-5.0-beta1. The patch in #10 is already in 5.x-dev, which also doesn't fix the warning.

jhuhta’s picture

Version: 8.x-4.0-beta1 » 8.x-5.x-dev
StatusFileSize
new799 bytes

Confirming, the problem is still not fixed in 5.x. Please reopen/review.

Not quite sure if this is the right approach, but as core seems to be expecting $element['#multiple'] being set in Drupal/Core/Render/Element/Select.php, maybe we can set it to FALSE when it's not? At least this fixes the problem for me.

saurabh-2k17’s picture

StatusFileSize
new799 bytes

I have re-rolled the patch for the latest stable version i.e. 8.x-5.0

kmakaveev’s picture

StatusFileSize
new799 bytes

Hello! I have re-rolled the patch for the latest stable version i.e. 8.x-5.2