Fatal error when visiting non existing entities

Created on 6 February 2024, 11 months ago
Updated 24 February 2024, 10 months ago

Problem/Motivation

Fatal error (memory exhaustion) when visiting nodes/users that do not exists.

Steps to reproduce

Create test site (for example simpletest.me)
Install module
Create second language
Place advanced language block
Visit node or user that does not exist

Proposed resolution

There seems to be an issue with "Url::createFromRequest" in LanguageSelectorBlock.php when the request is a 404 page.
In the core language switcher there is a check for front page/ 404 routematch, perhaps something like this can be used.
see "core\modules\language\src\Plugin\Block\LanguageBlock.php" line 92

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.3

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024