Controller "Drupal\tour\Controller\TourUIController::disable" requires the "$tour_id" argument that could not be resolved

Created on 12 August 2024, 8 months ago
Updated 30 August 2024, 7 months ago

Problem/Motivation

I just saw that a stable version of Tours was tagged. I've first installed it on a drupal 11.x-dev instance with the navigation module installed, i wanted to play around a bit. when i tried to disable the view_ui tour on /admin/config/user-interface/tour i ran into the following runtime exception:

The website encountered an unexpected error. Try again later.

RuntimeException: Controller "Drupal\tour\Controller\TourUIController::disable" requires the "$tour_id" argument that could not be resolved. Either the argument is nullable and no null value has been provided, no default value has been provided or there is a non-optional argument after this one. in Symfony\Component\HttpKernel\Controller\ArgumentResolver->getArguments() (line 121 of /var/www/html/vendor/symfony/http-kernel/Controller/ArgumentResolver.php).
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->onController() (Line: 246)
Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}() (Line: 206)
Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (Line: 56)
Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (Line: 171)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 709)
Drupal\Core\DrupalKernel->handle() (Line: 19)

i then spun up a instance with 11.0.1 and the toolbar module (just the out of the box drupal install) and i ran into the same exception. happening running on ddev with php 8.3 and mariadb 10.11

Steps to reproduce

  • /admin/config/user-interface/tour
  • Try to disable any enabled tour

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany rkoller Nรผrnberg, Germany

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024