Project

General

Profile

Actions

Bug #86616

closed

Content of 404 page is not shown

Added by Chris Müller over 5 years ago. Updated about 4 years ago.

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

0%

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

Description

I have multiple languages configured as single-tree. Now I created a 404 page in the page tree and referenced it in the Site Management module. I expected to see the content of the 404 page also with the status code 404 Not Found.

But I encountered the following issues:

  • Calling /should-not-be-found: I got a redirect to the URL of the default language (/en)
  • Calling /should-not-be-found/level2: The same
  • Calling /en/should-not-be-found: The status code is a 404 Not Found, but the content of the page is empty, the content-length header is set to 0. (it was fixed already in an update, in 9.5.4 this case works correctly)

My site configuration (config.yaml):

rootPageId: 3
base: 'https://www.example.net/'
baseVariants:
  -
    base: 'http://example.ddev.local:8080/'
    condition: 'applicationContext == "Development"'
  -
    base: 'https://staging.example.net/'
    condition: 'applicationContext == "Production/Staging"'
  -
    base: 'http://testing.example.net/'
    condition: 'applicationContext == "Testing"'
languages:
  -
    title: English
    enabled: true
    languageId: '0'
    base: /en
    typo3Language: default
    locale: en_US.utf8
    iso-639-1: en
    navigationTitle: English
    hreflang: en
    flag: us
  -
    title: Deutsch
    enabled: true
    languageId: '1'
    base: /de
    typo3Language: de
    locale: de_DE.utf-8
    iso-639-1: de
    navigationTitle: Deutsch
    hreflang: de
    fallbackType: strict
    flag: de
errorHandling:
  -
    errorCode: '404'
    errorHandler: Page
    errorContentSource: 't3://page?uid=96'
routes:
  -
    route: sitemap.xml
    type: uri
    source: 't3://page?uid=3&type=1533906435'                                                

The page 96 is set as visible, also both translations. I encounter this problem on my local ddev container (nginx), also on a webserver with Apache.


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #86615: Static route sitemap.xml is not working on single-page treeClosed2018-10-10

Actions
Related to TYPO3 Core - Bug #86935: Cannot fetch 404 page with simple baseClosed2018-11-15

Actions
Is duplicate of TYPO3 Core - Bug #86260: Site error handling: Show content from page with / entry pointClosed2018-09-15

Actions
Actions

Also available in: Atom PDF