#86972All Language Content Element are not displayed in default language
Description
I have tried out a fresh new installation of TYPO3 9.5.1 LTS. After building the structure in the backend, I have configured two languages through the site configuration.
On a page without content elements I first create an entry for the second language. Then:
- create a content element in two different languages —> it work’s, OK
- create a content element only in one language —> it’s displayed only in the corresponding language, OK
- create a content element for “all languages” (The sys_language_uid value is set to -1) —> Only displayed in the different languages, but not in the default language!
All together there are two bugs. The first one is, if you create a content element for all languages (value -1), the backend breaks in typo3_src-9.5.1/typo3/sysext/core/Classes/Site/Entity/Site.php Line 217 – 223 in the method getLanguageById. This one you can fix by the line:
if ($languageId == -1) $languageId = 0;
at the beginning of the method. This bug is only to get the content element editable in the backend. It has no effect to other behaviors.
The real bug is, that the content element is not displayed in the default language. I don’t know any solution for this.