Bug #86595

No Language Fallback

Added by Kay Röseler 2 months ago. Updated 4 days ago.

Status:
Accepted
Priority:
Must have
Assignee:
-
Category:
Localization
Target version:
-
Start date:
2018-10-08
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hello core team,

for a configured page with 3 languages (default: German, 2nd English, 3rd Danish) and fallback for the two additional languages set to the other language plus the default language, no fallback will be performed if the data record is only in the standard language is available.

This is the site configuration for the 3 languages:

languages:
  -
    title: Deutsch
    enabled: true
    languageId: '0'
    base: /
    typo3Language: de
    locale: de_DE.UTF-8
    iso-639-1: de
    navigationTitle: Deutsch
    hreflang: de-DE
    direction: ltr
    flag: de
  -
    title: English
    enabled: true
    languageId: '1'
    base: /en/
    typo3Language: default
    locale: en_GB.UTF-8
    iso-639-1: en
    navigationTitle: English
    hreflang: en-GB
    direction: ltr
    fallbackType: fallback
    fallbacks: '2,0'
    flag: en-us-gb
  -
    title: Danish
    enabled: true
    languageId: '2'
    base: /da/
    typo3Language: default
    locale: da-DA
    iso-639-1: da
    navigationTitle: Danish
    hreflang: da-DA
    direction: ltr
    fallbackType: fallback
    fallbacks: '1,0'
    flag: dk

Related issues

Related to TYPO3 Core - Bug #86712: config.sys_language_overlay has no effect New 2018-10-22
Related to TYPO3 Core - Bug #86762: Site-Configuration defined language fallbacks not working New 2018-10-26
Duplicated by TYPO3 Core - Bug #87121: Content fallback does not work, when page translation does not exist yet Closed 2018-12-11

History

#1 Updated by Georg Ringer 2 months ago

  • Status changed from New to Needs Feedback

isn't that the same issue than #86597?

#2 Updated by Kay Röseler 2 months ago

Georg Ringer wrote:

isn't that the same issue than #86597?

Hello Georg, no it is not. In the course of this issue here, I noticed the other issue in troubleshooting. Even if the query is changed in the other issue, the overlay does not work.

In addition, the other issue only applies if only the default language is selected in the configuration. In the above configuration, the other issue does not occur.

#3 Updated by Alexander Grein 2 months ago

I can confirm this bug.

To reproduce:
- create a site configuration with e.g. english (0) and german (1) and configure 0 as fallback for language 1
- create a page in language 0 with some content in this default language but no translations
- open this page in frontend and switch to language 1 by adding the corresponding slug (e.g. /de/) to the url

Result:
(1/1) #1518472189 TYPO3\CMS\Core\Error\Http\PageNotFoundException
The requested page does not exist

#4 Updated by Philipp Seiler about 2 months ago

  • Related to Bug #86712: config.sys_language_overlay has no effect added

#5 Updated by Carsten Hülsmann about 2 months ago

Alexander Grein wrote:

I can confirm this bug.

To reproduce:
- create a site configuration with e.g. english (0) and german (1) and configure 0 as fallback for language 1
- create a page in language 0 with some content in this default language but no translations
- open this page in frontend and switch to language 1 by adding the corresponding slug (e.g. /de/) to the url

Result:
(1/1) #1518472189 TYPO3\CMS\Core\Error\Http\PageNotFoundException
The requested page does not exist

I can also confirm this. This is kind of a blocker for us at the moment.

#6 Updated by Stefan Neufeind about 2 months ago

  • Related to Bug #86762: Site-Configuration defined language fallbacks not working added

#7 Updated by Wittkiel Gruppe 22 days ago

The status of this issue should be changed, i think here is already enough good feedback, if not please ask :-)

We also have this bug with current TYPO3 9.5.1:

- create a site-configuration with e.g. german (0) and english (1) and configure 0 as fallback for language 1
- create a page "test" in language 0 with some content in this default language but no translations for language 1
- language 0 http://example.com/test in frontend works
- language 1 http://example.com/en/test in frontend doesn't work, "RouteNotFoundException" is thrown in sysext/frontend/Classes/Middleware/PageResolver.php line 103


rootPageId: 1
base: 'http://example.com/'
languages:
  -
    title: Deutsch
    enabled: true
    languageId: '0'
    base: /
    typo3Language: de
    locale: de_DE.UTF-8
    iso-639-1: de
    navigationTitle: Deutsch
    hreflang: de-DE
    direction: ltr
    flag: de
  -
    title: English
    enabled: true
    languageId: '1'
    base: /en/
    typo3Language: default
    locale: en_GB.UTF-8
    iso-639-1: en
    navigationTitle: English
    hreflang: en-GB
    direction: ltr
    fallbackType: fallback
    fallbacks: '0'
    flag: gb
errorHandling: {  }
baseVariants: {  }
routes:
  -
    route: sitemap.xml
    type: uri
    source: 't3://page?uid=1&type=1533906435'

#8 Updated by Helmut Hummel 7 days ago

  • Duplicated by Bug #87121: Content fallback does not work, when page translation does not exist yet added

#9 Updated by Helmut Hummel 4 days ago

  • Status changed from Needs Feedback to Accepted

Also available in: Atom PDF