Update requirements

Created on 6 March 2024, 10 months ago
Updated 5 August 2024, 5 months ago

Problem/Motivation

After updating to Drupal 9.5.11, I get this error message

The website encountered an unexpected error. Please try again later.
TypeError: gin_lb_css_alter(): Argument #3 ($language) must be of type Drupal\Core\Language\LanguageInterface, null given, called in /drupal/docroot/core/lib/Drupal/Core/Extension/ModuleHandler.php on line 562 in gin_lb_css_alter() (line 32 of modules/contrib/gin_lb/gin_lb.module).

gin_lb_css_alter(Array, Object, NULL) (Line: 562)
Drupal\Core\Extension\ModuleHandler->alter('css', Array, Object) (Line: 159)
Drupal\Core\Asset\AssetResolver->getCssAssets(Object, ) (Line: 311)
Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAssetLibraries(Object, Array) (Line: 157)
Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments(Object) (Line: 45)
Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond(Object, 'kernel.response', Object)
call_user_func(Array, Object, 'kernel.response', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.response') (Line: 202)
Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object, Object, 1) (Line: 190)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
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: 50)
Drupal\ban\BanMiddleware->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: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 718)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Proposed resolution

Currently (drupal/core 9.5.11) the hook in core does not pass that third argument, so it can be removed to fix the problem.

๐Ÿ’ฌ Support request
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡ฆ๐Ÿ‡ทArgentina matiasmiranda Yerba Buena

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