Bug #91013
closedSite Error Handling does not respect disabled SiteLanguages
100%
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
Updated by Andreas Sturmberger about 4 years ago
- Related to Bug #87865: Site error handling does not work with disabled languages added
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.
Updated by Christian Eßl about 4 years ago
- Related to Bug #90135: Get correct site in PageContentErrorHandler added
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
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
Updated by Christian Eßl about 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 19889aa8383874634c00acf22f6b28bf2efeca9f.