Hello,
thank you for the module. It's very useful, but I noticed a bug. It happens when using the view Entity reference filter + contextual filter.
When I want to apply the exposed filter settings (no matter if it is basic or bef) the ajax error appears. And no matter what contextual filter is used, be it the term name or the content ID, but if the entity reference filter is used it causes such error.
Ajax error
Details
If I click cancel and then save the view, the exposed filter settings will still be saved.

But still, this error is very confusing and annoying.
If I remove entity reference filter or contextual filter the apply button works again without the error.
Could you, please, help to deal with this issue?

Comments

Irina Matusevich created an issue. See original summary.

maximkashuba’s picture

Hi, Irina. I will look at this problem during this month (March 2021)

maximkashuba’s picture

Status: Active » Postponed (maintainer needs more info)
jrochate’s picture

HI.

I'm having the same problem using Drupal 8.9.19 + Views Reference Filter 1.4 + BEF or not BEF.

The filter using a field with a "entityreference filter" does not need to be necessarily exposed because this error happens exposed or not.

Error: Call to a member function hasPath() on null na Drupal\views\Plugin\views\argument\ArgumentPluginBase->defaultActions() (linha 535 de /web/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php)

#0 /web/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php(792): Drupal\views\Plugin\views\argument\ArgumentPluginBase->defaultActions()
#1 /web/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php(1072): Drupal\views\Plugin\views\argument\ArgumentPluginBase->hasDefaultArgument()
#2 /web/modules/contrib/entityreference_filter/src/Plugin/views/filter/EntityReferenceFilterViewResult.php(338): Drupal\views\Plugin\views\argument\ArgumentPluginBase->getValue()
#3 /web/modules/contrib/entityreference_filter/src/Plugin/views/filter/EntityReferenceFilterViewResult.php(249): Drupal\entityreference_filter\Plugin\views\filter\EntityReferenceFilterViewResult->getViewContextArgs()
#4 /web/modules/contrib/entityreference_filter/src/Plugin/views/filter/EntityReferenceFilterViewResult.php(218): Drupal\entityreference_filter\Plugin\views\filter\EntityReferenceFilterViewResult->getFilterArgs()
#5 /web/modules/contrib/entityreference_filter/src/Plugin/views/filter/EntityReferenceFilterViewResult.php(191): Drupal\entityreference_filter\Plugin\views\filter\EntityReferenceFilterViewResult->getConfiguredViewsOptions()
#6 /web/modules/contrib/entityreference_filter/src/Plugin/views/filter/EntityReferenceFilterViewResult.php(687): Drupal\entityreference_filter\Plugin\views\filter\EntityReferenceFilterViewResult->getValueOptions()
#7 /web/core/modules/views_ui/src/ViewEditForm.php(1100): Drupal\entityreference_filter\Plugin\views\filter\EntityReferenceFilterViewResult->adminSummary()
#8 /web/core/modules/views_ui/src/ViewEditForm.php(584): Drupal\views_ui\ViewEditForm->getFormBucket()
#9 /web/core/modules/views_ui/src/ViewEditForm.php(359): Drupal\views_ui\ViewEditForm->getDisplayDetails()
#10 /web/core/modules/views_ui/src/ViewEditForm.php(688): Drupal\views_ui\ViewEditForm->getDisplayTab()
#11 /web/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(169): Drupal\views_ui\ViewEditForm->rebuildCurrentTab()
#12 /web/core/modules/views_ui/src/Form/Ajax/Display.php(46): Drupal\views_ui\Form\Ajax\ViewsFormBase->getForm()
#13 [internal function]: Drupal\views_ui\Form\Ajax\Display->getForm()
#14 /web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#15 /web/core/lib/Drupal/Core/Render/Renderer.php(573): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#16 /web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#17 /web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#18 /vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#19 /vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#20 /web/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle()
#21 /web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle()
#22 /web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#23 /web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#24 /web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle()
#25 /web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#26 /vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#27 /web/core/lib/Drupal/Core/DrupalKernel.php(708): Stack\StackedHttpKernel->handle()
#28 /web/index.php(19): Drupal\Core\DrupalKernel->handle()
#29 {main}
tahu22’s picture

in dev version error is gone