Issue Bug Resolved

#111579Error page that is not available shows the root page or causes status 500

Matthias Vogel 11/25/26, 11:13 updated 11/28/26, 11:00

Description

A site configures a page of the instance as error page (errorHandler: Page). PageContentErrorHandler does not handle this error page well when it cannot show it:

  • When the error page is hidden or outside its start and end time, the handler builds the URI / and shows the content of the root page with the error status code.
  • When the sub-request cannot get the error page, for example because only a frontend user group has access to it, the handler throws exception 1544172839. The visitor gets status 500 instead of the original status code, for example 404.

For an external error page that is not available, the handler already sends the original status code with a generic message.

Expected: the handler builds the URI of the configured error page also when the page is hidden or scheduled. When it cannot get the error page, it sends the TYPO3 error page with the original status code and logs the cause. A backend user who can see hidden pages gets the error page.

Reviews 4

History 37

  1. Matthias Vogel changed Related to #111504 11/25/26, 11:13

  2. Matthias Vogel changed Related to #106757 11/25/26, 11:13

  3. Gerrit Code Review pushed patch set 1 for main to change 98009 status New Under Review 11/25/26, 11:15

  4. Gerrit Code Review pushed patch set 2 for main to change 98009 11/25/26, 13:10

  5. Gerrit Code Review pushed patch set 4 for main to change 98009 11/27/26, 09:59

  6. Gerrit Code Review pushed patch set 1 for 14.3 to change 98152 11/28/26, 10:56

  7. Matthias Vogel commented and changed status Under Review Resolved done 0 % 100 % 11/28/26, 11:00

    Applied in changeset commit:fc965b12fc05236bd92c63f0e9fdee8efff49b29.