Error on default 404 & 403 pages with domain-based language selection

Created on 13 January 2016, almost 9 years ago
Updated 27 January 2023, almost 2 years ago

I have a site configured with 2 languages (Portuguese, Brazil and Spanish) and domain as language selector.

If I leave blank the 404 page, it doesn't work correctly, system throw me this error:

El sitio web encontró un error inesperado. Vuelva a intentarlo más tarde. (Unexpected error.)

Symfony\Component\HttpKernel\Exception\NotFoundHttpException: No route found for "GET /http://public.local.site.com/system/404" in Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest() (line 159 of vendor/symfony/http-kernel/EventListener/RouterListener.php).

However, if I configure any corect path as 404 path, system run correctly.

If I disable language detection by domain, system run correctly too.

I attach 2 images with the configuration screenshot.

[I'm not sure if it's a system bug or a language bug or any others]

🐛 Bug report
Status

Closed: duplicate

Version

10.1

Component
Language system 

Last updated about 7 hours ago

  • Maintained by
  • 🇩🇪Germany @sun
Created by

🇪🇸Spain estoyausente

Live updates comments and jobs are added and updated live.
  • D8MI

    (Drupal 8 Multilingual Initiative) is the tag used by the multilingual initiative to mark core issues (and some contributed module issues). For versions other than Drupal 8, use the i18n (Internationalization) tag on issues which involve or affect multilingual / multinational support. That is preferred over Translation.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024