Problem/Motivation

Getting this error when editing the field or editing the node on which the field exists.:

Drupal\Component\Plugin\Exception\PluginException: Plugin "exposed_filters" (Drupal\viewsreference_filter\Plugin\ViewsReferenceSetting\ViewsReferenceExposedFilters) must implement interface Drupal\viewsreference\Plugin\ViewsReferenceSettingInterface. in Drupal\Component\Plugin\Factory\DefaultFactory::getPluginClass() (line 101 of core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php).

Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('exposed_filters', Array) (Line: 83)
Drupal\Component\Plugin\PluginManagerBase->createInstance('exposed_filters', Array) (Line: 151)
Drupal\viewsreference\Plugin\Field\FieldWidget\ViewsReferenceSelectWidget->fieldElement(Object, 0, Array, Array, Object) (Line: 30)
Drupal\viewsreference\Plugin\Field\FieldWidget\ViewsReferenceSelectWidget->formElement(Object, 0, Array, Array, Object) (Line: 353)
Drupal\Core\Field\WidgetBase->formSingleElement(Object, 0, Array, Array, Object) (Line: 220)
Drupal\Core\Field\WidgetBase->formMultipleElements(Object, Array, Object) (Line: 111)
Drupal\Core\Field\WidgetBase->form(Object, Array, Object) (Line: 181)
Drupal\Core\Entity\Entity\EntityFormDisplay->buildForm(Object, Array, Object) (Line: 121)
Drupal\Core\Entity\ContentEntityForm->form(Array, Object) (Line: 127)
Drupal\node\NodeForm->form(Array, Object) (Line: 106)
Drupal\Core\Entity\EntityForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 532)
Drupal\Core\Form\FormBuilder->retrieveForm('node_index_ct_edit_form', Object) (Line: 278)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 578)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
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: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 717)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Steps to reproduce

Getting this error when attempting to configure a Viewsreference field to use the exposed filter option. The target View has a single exposed filter which is of type Content Type. I deleted the exposed filter from view and still got the error.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

capellic created an issue. See original summary.

capellic’s picture

Status: Active » Closed (duplicate)

Looked at the issue queue with fresh eyes this morning and realize that this is a dupe of https://www.drupal.org/project/viewsreference_filter/issues/3192552