ext-solr icon indicating copy to clipboard operation
ext-solr copied to clipboard

[FIX] avoid getting 404 page if translation of root page for language…

Open anjeylink opened this issue 9 years ago • 8 comments

when indexing records for non default language and root page wasn't translated it getting 404 page when init FE.

anjeylink avatar Jan 11 '17 08:01 anjeylink

@anjeylink Can you please create an issue and describe the problem there?

timohund avatar Jan 11 '17 09:01 timohund

@timohund where ? ;)

anjeylink avatar Jan 11 '17 10:01 anjeylink

@anjeylink here on github :)

timohund avatar Jan 11 '17 10:01 timohund

@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.').

anjeylink avatar Jan 11 '17 10:01 anjeylink

Can be closed? is it currently not checked in master c936dea0dd29700773c6a62e429380f9373d5ac6

dkd-kaehm avatar Feb 10 '17 15:02 dkd-kaehm

Related issue is #536

We should:

  • Add a test
  • Extract the logic in the patch into a method

timohund avatar Jul 25 '17 09:07 timohund

@anjeylink This only happens when you set the config.sys_language_mode to strict right?

timohund avatar Sep 21 '17 08:09 timohund

@timohund i think so, but i didn't test it.

anjeylink avatar Sep 21 '17 08:09 anjeylink