Undefined array key 1

Created on 1 August 2023, 11 months ago
Updated 16 August 2023, 11 months ago

Problem/Motivation

When I tried to visit page with already created view mode following issues ocrrues on D10:

Warning: Undefined array key 1 in Drupal\view_mode_page\PathProcessor\DynamicPathProcessor->processInbound() (line 85 of modules\contrib\view_mode_page\src\PathProcessor\DynamicPathProcessor.php).
Drupal\view_mode_page\PathProcessor\DynamicPathProcessor->processInbound('/my-dashboard/list', Object) (Line: 70)
Drupal\Core\PathProcessor\PathProcessorManager->processInbound('/my-dashboard/list', Object) (Line: 176)
Drupal\Core\Routing\RouteProvider->getRouteCollectionForRequest(Object) (Line: 252)
Drupal\Core\Routing\Router->getInitialRouteCollection(Object) (Line: 142)
Drupal\Core\Routing\Router->matchRequest(Object) (Line: 90)
Drupal\Core\Routing\AccessAwareRouter->matchRequest(Object) (Line: 105)
Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest(Object, 'kernel.request', Object)
call_user_func(Array, Object, 'kernel.request', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.request') (Line: 142)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 74)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
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: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
πŸ› Bug report
Status

Active

Version

4.0

Component

Code

Created by

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

Comments & Activities

  • Issue created by @coaston
  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    How can this be reproduced on a vanilla Drupal installation? Seems to be specific, I can't reproduce it yet. What's your exact case and pattern?

Production build 0.69.0 2024