Problem/Motivation
After updating to version 10.6.1 (from 10.5.8), despite the view block set with Field Context contextual filters working perfectly, I receive this warning
It should be noted that it returns the same warning when I set another type of contextual filter block, for example “Content ID from URL”.
Warning: Undefined array key "fcpage" in Drupal\field_context\Plugin\views\argument_default\FieldContext->buildOptionsForm() (line 103 of /Users/xstage/Sites/commonline/web/modules/contrib/field_context/src/Plugin/views/argument_default/FieldContext.php)
#0 /Users/xstage/Sites/commonline/web/core/includes/bootstrap.inc(166): _drupal_error_handler_real(2, 'Undefined array...', '/Users/xstage/S...', 103)
#1 /Users/xstage/Sites/commonline/web/modules/contrib/field_context/src/Plugin/views/argument_default/FieldContext.php(103): _drupal_error_handler(2, 'Undefined array...', '/Users/xstage/S...', 103)
#2 /Users/xstage/Sites/commonline/web/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php(658): Drupal\field_context\Plugin\views\argument_default\FieldContext->buildOptionsForm(Array, Object(Drupal\Core\Form\FormState))
#3 /Users/xstage/Sites/commonline/web/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php(291): Drupal\views\Plugin\views\argument\ArgumentPluginBase->defaultArgumentForm(Array, Object(Drupal\Core\Form\FormState))
#4 /Users/xstage/Sites/commonline/web/core/modules/views/src/Plugin/views/argument/NumericArgument.php(37): Drupal\views\Plugin\views\argument\ArgumentPluginBase->buildOptionsForm(Array, Object(Drupal\Core\Form\FormState))
#5 /Users/xstage/Sites/commonline/web/core/modules/views_ui/src/Form/Ajax/ConfigHandler.php(166): Drupal\views\Plugin\views\argument\NumericArgument->buildOptionsForm(Array, Object(Drupal\Core\Form\FormState))
#6 [internal function]: Drupal\views_ui\Form\Ajax\ConfigHandler->buildForm(Array, Object(Drupal\Core\Form\FormState))
#7 /Users/xstage/Sites/commonline/web/core/lib/Drupal/Core/Form/FormBuilder.php(536): call_user_func_array(Array, Array)
#8 /Users/xstage/Sites/commonline/web/core/lib/Drupal/Core/Form/FormBuilder.php(284): Drupal\Core\Form\FormBuilder->retrieveForm('views_ui_config...', Object(Drupal\Core\Form\FormState))
#9 /Users/xstage/Sites/commonline/web/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(215): Drupal\Core\Form\FormBuilder->buildForm('Drupal\\views_ui...', Object(Drupal\Core\Form\FormState))
#10 /Users/xstage/Sites/commonline/web/core/lib/Drupal/Core/Render/Renderer.php(637): Drupal\views_ui\Form\Ajax\ViewsFormBase->Drupal\views_ui\Form\Ajax\{closure}()
#11 /Users/xstage/Sites/commonline/web/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(217): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#12 /Users/xstage/Sites/commonline/web/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(127): Drupal\views_ui\Form\Ajax\ViewsFormBase->ajaxFormWrapper('Drupal\\views_ui...', Object(Drupal\Core\Form\FormState))
#13 /Users/xstage/Sites/commonline/web/core/modules/views_ui/src/Form/Ajax/ConfigHandler.php(39): Drupal\views_ui\Form\Ajax\ViewsFormBase->getForm(Object(Drupal\views_ui\ViewUI), 'block_1', 'ajax')
#14 [internal function]: Drupal\views_ui\Form\Ajax\ConfigHandler->getForm(Object(Drupal\views_ui\ViewUI), 'block_1', 'ajax', 'argument', 'field_paese_tar...')
#15 /Users/xstage/Sites/commonline/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#16 /Users/xstage/Sites/commonline/web/core/lib/Drupal/Core/Render/Renderer.php(637): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#17 /Users/xstage/Sites/commonline/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#18 /Users/xstage/Sites/commonline/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#19 /Users/xstage/Sites/commonline/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#20 /Users/xstage/Sites/commonline/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#21 /Users/xstage/Sites/commonline/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /Users/xstage/Sites/commonline/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 /Users/xstage/Sites/commonline/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#24 /Users/xstage/Sites/commonline/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 /Users/xstage/Sites/commonline/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(116): Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#26 /Users/xstage/Sites/commonline/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(90): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#27 /Users/xstage/Sites/commonline/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#28 /Users/xstage/Sites/commonline/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#29 /Users/xstage/Sites/commonline/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#30 /Users/xstage/Sites/commonline/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#31 /Users/xstage/Sites/commonline/web/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#32 /Users/xstage/Sites/commonline/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#33 {main}
What could be causing this?
Thank you for your reply.
Steps to reproduce
Update Drupal to version 10.6.1 and build a view with any type of contextual filter.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comments