WSOD error fails on Drupal 10.3+

Created on 1 July 2024, 5 months ago
Updated 16 August 2024, 3 months ago

After upgrading to drupal 10.1 => 10.3, I experienced this error, when accessing /admin/appearance

The website encountered an unexpected error. Try again later.

TypeError: Drupal\system\Controller\SystemController::__construct(): Argument #4 ($menu_link_tree) must be of type Drupal\Core\Menu\MenuLinkTreeInterface, Drupal\Core\Extension\ThemeHandler given, called in /app/web/modules/contrib/theme_permission/src/Controller/AccessController.php on line 72 in Drupal\system\Controller\SystemController->__construct() (line 85 of core/modules/system/src/Controller/SystemController.php).
Drupal\theme_permission\Controller\AccessController->__construct() (Line: 89)
Drupal\theme_permission\Controller\AccessController::create() (Line: 41)
Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition() (Line: 100)
Drupal\Core\Utility\CallableResolver->getCallableFromDefinition() (Line: 50)
Drupal\Core\Controller\ControllerResolver->getControllerFromDefinition() (Line: 65)
Drupal\Core\Controller\ControllerResolver->getController() (Line: 164)
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: 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: 741)
Drupal\Core\DrupalKernel->handle() (Line: 19)

It would appear that the SystemController has changed, and now the parent constructor doesnt work.

I'll attach a related patch.

πŸ› Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡°Denmark ras-ben Copenhagen

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

Comments & Activities

Production build 0.71.5 2024