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 #1

Updated by Andreas Sturmberger about 4 years ago

  • Related to Bug #87865: Site error handling does not work with disabled languages added
Actions #2

Updated by Christian Eßl about 4 years ago

  • Status changed from New to Accepted
  • Is Regression set to Yes

Looks like the changes made in #90135 broke the behaviour again.

Actions #3

Updated by Christian Eßl about 4 years ago

  • Related to Bug #90135: Get correct site in PageContentErrorHandler added
Actions #4

Updated by Gerrit Code Review about 4 years ago

  • Status changed from Accepted 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/+/64131

Actions #5

Updated by Gerrit Code Review about 4 years ago

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/+/64142

Actions #6

Updated by Christian Eßl about 4 years ago

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

Updated by Benni Mack about 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF