Project

General

Profile

Actions

Bug #99156

closed

Allow rendering empty language menu if sys_language_uid 0 is disabled in PHP 8.1

Added by J. Peter M. Schuler about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-11-21
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

On all sites we have a default language menu rendered via the LanguageMenuProcessor.
The typical language config is

0 = de
1 = en

However we have one sites with primary language `en`. However in order to aggregate content and link between sites with a correct url this site has the config
0 = en (disabled)
1 = en

With PHP 8.1 instead of an empty LanuageMenu as output, an exception is thrown: PHP Warning: Trying to access array offset on value of type null in /typo3/sysext/frontend/Classes/DataProcessing/LanguageMenuProcessor.php line 493

Actions

Also available in: Atom PDF