Bug #86616

Content of 404 page is not shown

Added by Chris Müller 2 months ago. Updated 2 months ago.

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

0%

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 deafult 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.

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

Related to TYPO3 Core - Bug #86615: Static route sitemap.xml is not working on single-page tree Resolved 2018-10-10
Duplicates TYPO3 Core - Bug #86260: Site error handling: Show content from page with / entry point Accepted 2018-09-15

History

#1 Updated by Chris Müller 2 months ago

  • Description updated (diff)

#2 Updated by Chris Müller 2 months ago

  • Description updated (diff)

#3 Updated by Martin Reimund 2 months ago

  • Related to Bug #86260: Site error handling: Show content from page with / entry point added

#4 Updated by Martin Reimund 2 months ago

  • Related to deleted (Bug #86260: Site error handling: Show content from page with / entry point)

#5 Updated by Martin Reimund 2 months ago

  • Duplicates Bug #86260: Site error handling: Show content from page with / entry point added

#6 Updated by Georg Ringer 2 months ago

  • Category set to Link Handling, Site Handling & Routing
  • Status changed from New to Accepted

#7 Updated by Georg Ringer 2 months ago

  • Related to Bug #86615: Static route sitemap.xml is not working on single-page tree added

Also available in: Atom PDF