Project

General

Profile

Actions

Bug #91013

closed

Site Error Handling does not respect disabled SiteLanguages

Added by Andreas Sturmberger about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2020-04-13
Due date:
% Done:

100%

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

Description

I think this is a duplicate of https://forge.typo3.org/issues/87865 but since this issue has been fixed (but it doesnt work for me) I decided to open a new one.

My Config:

languages:
  de:
    title: German
    enabled: true
    languageId: 0
    base: /
    typo3Language: de
    locale: de_DE
    iso-639-1: de
    navigationTitle: 'DE'
    hreflang: 'de'
    direction: ''
    flag: de
  it:
    title: Italian
    enabled: false
    languageId: 2
    base: /it/
    typo3Language: it
    locale: it_IT
    iso-639-1: it
    navigationTitle: 'IT'
    hreflang: 'it'
    direction: ''
    flag: it

errorHandling:
  404:
    errorCode: '404'
    errorHandler: Page
    errorContentSource: 't3://page?uid=68'

If i go to "https://mysite.com/aiosdfjoijd" the correct 404 Page is shown. However, if i go to "https://mysite.com/it/aiosdfjoijd" the following error shows up:

(1/1) #1544172838 RuntimeException
Error handler could not fetch error page "https:///mysite.com/it/404", reason: Client error: `GET https:///mysite.com/it/404` resulted in a `404 Not Found` response

If i remove the language "it" from the config file it works fine again. but since the sitelanguage is disabled, it should not be treated the way it is now.

TYPO3 9.5.15
PHP 7.2.24


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #87865: Site error handling does not work with disabled languagesClosed2019-03-08

Actions
Related to TYPO3 Core - Bug #90135: Get correct site in PageContentErrorHandlerClosed2020-01-16

Actions
Actions

Also available in: Atom PDF