Checkboxes with "remember the last selection" causes error

Created on 9 January 2018, almost 7 years ago
Updated 22 May 2024, 6 months ago

I'm using Drupal 8.4.4 and the Better Exposed Filters module, version 8.x-3.0-alpha3, in Acquia Dev Desktop.

I have a View with a block display of Media for placing on taxonomy term pages. The View displays both images and Video Media types. In the View I have an exposed filter that allows the user to choose to display images and/or videos.

If I set the filter to "remember the last selection", and also set BEF to "checkboxes/radio buttons", I get an error: "An illegal choice has been detected. Please contact the site administrator." If either of those things are not selected, I don't get the error.

I have posted a demonstration video of the issue at https://www.youtube.com/watch?v=3tKuESCkToc

I previously posted this (or a very similar issue) as a core issue β†’ before I narrowed it down to an incompatibility between BEF checkboxes and remembering the last filter selection. At that stage I was using XAMPP and displaying the View on a content page, so that should rule out Dev Desktop and taxonomy pages as the cause.

This is the full text of the error message:

Notice: Undefined property: Drupal\webprofiler\Views\TraceableViewExecutable::$build_time in Drupal\webprofiler\Views\TraceableViewExecutable->getBuildTime() (line 25 of modules\devel\webprofiler\src\Views\TraceableViewExecutable.php).
Drupal\webprofiler\Views\TraceableViewExecutable->getBuildTime() (Line: 55)
Drupal\webprofiler\DataCollector\ViewsDataCollector->collect(Object, Object, NULL) (Line: 184)
Symfony\Component\HttpKernel\Profiler\Profiler->collect(Object, Object, NULL) (Line: 97)
Symfony\Component\HttpKernel\EventListener\ProfilerListener->onKernelResponse(Object, 'kernel.response', Object) (Line: 76)
Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher->dispatch('kernel.response', Object) (Line: 193)
Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object, Object, 1) (Line: 175)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 38)
Drupal\webprofiler\StackMiddleware\WebprofilerMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 657)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
πŸ› Bug report
Status

Active

Version

7.0

Component

Code

Created by

πŸ‡ΉπŸ‡­Thailand Nick Hope

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024