[FIX] avoid getting 404 page if translation of root page for language…
when indexing records for non default language and root page wasn't translated it getting 404 page when init FE.
@anjeylink Can you please create an issue and describe the problem there?
@timohund where ? ;)
@anjeylink here on github :)
@timohund ok. On our installation (TYPO3 8.5.1) we have a few system languages and different sites has different translations. Lets say root page with UID 1 has default language (UID 0 ) and Swedish language (UID 1), root page with UID 10 - has default language (UID 0) and Italian language (UID 2).
When it comes to indexing of news records, indexer trying to init FE for each root page and each available language.
Util::initializeTsfe($rootPageUid, $language);
but if root page UID 10 doesn't have translation for Swedish language with uid 1, init FE cause throwing 404 page ( reasonText => 'Page is not available in the requested language.').
Can be closed? is it currently not checked in master c936dea0dd29700773c6a62e429380f9373d5ac6
Related issue is #536
We should:
- Add a test
- Extract the logic in the patch into a method
@anjeylink This only happens when you set the config.sys_language_mode to strict right?
@timohund i think so, but i didn't test it.