Bug #86662

Exception "Language 40 does not exist on site site1" when entering the list view (BE)

Added by Tymoteusz Motylewski over 1 year ago. Updated 13 days ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2018-10-15
Due date:
% Done:

100%

TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
On Location Sprint

Description

I have a page which is translated to language uid:40.
Unfortunatelly the language is not yet configured in the site handling module.
When you enter the list view of the page, an exception 1522960188 is thrown "Language 40 does not exist on site site1."
Because TYPO3 tries to generate a preview link for this translated page.

I see that some exceptions are caught in 2696 of BackendUtility, but not this particular exception.


Related issues

Related to TYPO3 Core - Bug #86745: Error in backend module 'list' after deleting a site language (not default language) New 2018-10-25

Associated revisions

Revision e03636ea (diff)
Added by Daniel Goerz 14 days ago

[BUGFIX] Only show translate button for available languages

The list module now takes the available SiteLanguages
into account when rendering the buttons for creating new
translations of records. If a language gets deleted from
the site configuration it is no longer possible to create
record translations to this language.

Resolves: #86662
Releases: master, 9.5
Change-Id: If03598fbb63496d36c93cd832cbdb3028b5e32e1
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62854
Tested-by: TYPO3com <>
Tested-by: Markus Klein <>
Tested-by: Susanne Moog <>
Reviewed-by: Markus Klein <>
Reviewed-by: Susanne Moog <>

Revision 33d4aa73 (diff)
Added by Daniel Goerz 13 days ago

[BUGFIX] Only show translate button for available languages

The list module now takes the available SiteLanguages
into account when rendering the buttons for creating new
translations of records. If a language gets deleted from
the site configuration it is no longer possible to create
record translations to this language.

Resolves: #86662
Releases: master, 9.5
Change-Id: If03598fbb63496d36c93cd832cbdb3028b5e32e1
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62859
Tested-by: TYPO3com <>
Tested-by: Daniel Goerz <>
Tested-by: Henning Liebe <>
Tested-by: Susanne Moog <>
Reviewed-by: Henning Liebe <>
Reviewed-by: Jörg Bösche <>
Reviewed-by: Daniel Goerz <>
Reviewed-by: Susanne Moog <>

History

#1 Updated by Joerg Kummer over 1 year ago

Is this related to #86734?

#2 Updated by Susanne Moog over 1 year ago

  • Sprint Focus set to On Location Sprint

#3 Updated by Georg Ringer over 1 year ago

IMO not related

#4 Updated by Jasmina Ließmann over 1 year ago

  • Related to Bug #86745: Error in backend module 'list' after deleting a site language (not default language) added

#5 Updated by Markus Gehrig 4 months ago

I have the same Error in the Frontend. (Version: TYPO3 9.5.9)

(1/1) #1522960188 InvalidArgumentException
Language 3 does not exist on site

Site Configuration:

rootPageId: 1
base: 'http://www.example.local'
languages:
  -
    title: Deutsch
    enabled: true
    languageId: '0'
    base: /de/
    typo3Language: de
    locale: de_CH.UTF-8
    iso-639-1: de
    navigationTitle: DE
    hreflang: de-ch
    direction: ltr
    flag: de
  -
    title: Italienisch
    enabled: true
    languageId: '3'
    base: /it/
    typo3Language: it
    locale: it_CH.UTF-8
    iso-639-1: it
    navigationTitle: IT
    hreflang: it-ch
    direction: ltr
    fallbackType: free
    fallbacks: '0'
    flag: it
  -
    title: Englisch
    enabled: true
    languageId: '1'
    base: /en/
    typo3Language: default
    locale: en_GB.UTF-8
    iso-639-1: en
    navigationTitle: EN
    hreflang: en-gb
    direction: ltr
    fallbackType: free
    fallbacks: '0'
    flag: gb
  -
    title: Französisch
    enabled: true
    languageId: '2'
    base: /fr/
    typo3Language: fr
    locale: fr_CH.UTF-8
    iso-639-1: fr
    navigationTitle: FR
    hreflang: fr-ch
    direction: ltr
    fallbackType: free
    fallbacks: '0'
    flag: fr
errorHandling: {  }
baseVariants:
  -
    base: 'http://www.example.local'
    condition: 'applicationContext == "Development"'
  -
    base: 'http://dev.example.ch.cabvs0XX.nine.ch'
    condition: 'applicationContext == "Development/Remote"'
  -
    base: 'http://example.cabvs0XX.nine.ch'
    condition: 'applicationContext == "Production"'
routes: {  }

#6 Updated by Susanne Moog 14 days ago

  • Sprint Focus deleted (On Location Sprint)

#7 Updated by Susanne Moog 14 days ago

  • Sprint Focus set to On Location Sprint

#8 Updated by Gerrit Code Review 14 days ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62854

#9 Updated by Daniel Goerz 14 days ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#10 Updated by Gerrit Code Review 14 days ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62859

#11 Updated by Gerrit Code Review 14 days ago

Patch set 2 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62859

#12 Updated by Daniel Goerz 13 days ago

  • Status changed from Under Review to Resolved

Also available in: Atom PDF