Several errors and warnings

Created on 9 April 2025, 4 days ago

Problem/Motivation

I tried out this module after a suggestion in issue https://www.drupal.org/project/drupal/issues/3517658 ๐Ÿ› Translation links and/or language switcher don't work as expected Active but this doesn't seem to solve the issue I have. Also, I got several errors when installing/configuring the module.

After enabling the detection method(s):
Warning: Trying to access array offset on null in Drupal\advanced_language_negotiation\Plugin\LanguageNegotiation\AdvancedLanguageNegotiation->processInbound() (line 98 of modules/contrib/advanced_language_negotiation/src/Plugin/LanguageNegotiation/AdvancedLanguageNegotiation.php).

This warning is show over 50 times.

After saving the configuration
A 500 error. This doesn't seem to show up in both the apache errors logs nor the Drupal logs. Probably redirects?

When rebuilding the cache:
The website encountered an unexpected error. Try again later.

Error: Class "Drupal\domain\DomainRedirectResponse" not found in Drupal\advanced_language_negotiation\EventSubscriber\RedirectResponseSubscriber->checkRedirectUrl() (line 49 of modules/contrib/advanced_language_negotiation/src/EventSubscriber/RedirectResponseSubscriber.php).
Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}(Object, 'kernel.response', Object) (Line: 206)
Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'kernel.response', Object) (Line: 56)
Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object, 'kernel.response') (Line: 216)
Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object, Object, 1) (Line: 204)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 90)
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: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 45)
Drupal\zen_widgets\StackMiddleware\RestResourceAllowOptions->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 709)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Steps to reproduce

Install the module, enable one of the detection methods.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

๐Ÿ‡ณ๐Ÿ‡ฑNetherlands markwittens

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