Issue Bug Closed

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

J. Peter M. Schuler 11/21/22, 16:24 updated 12/06/22, 21:52

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

Reviews 2