Task #87302

Throw better exception if a page for 404 error handling throws an fluid exception

Added by Josef Glatz 8 months ago. Updated 6 months ago.

Status:
New
Priority:
Could have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2018-12-27
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Problem/Description

Reproduce the following scenario

  1. Using the new site configuration and setting a 404 page like t3://page?uid=15
  2. force a fluid exception on a CE in the target 404 page (e.g. f:for VH on a string)
  3. open https://yourproject.localdevdomain/foobarmuhbar42
  4. This leads to the following exception:
#1544172838 RuntimeException
Error handler could not fetch error page "https://yourproject.localdevdomain/404", reason: Client error: `GET https://yourproject.localdevdomain/404` resulted in a `404 The requested page does not exist` response

A dev/integrator may be confused. Feels like any environment specific problem.

ToDo(s)

  • If possible – show a better exception to the TYPO3 Integrator

History

#1 Updated by Martin Kutschker 6 months ago

I suggest that in production context the handler falls back to the standard typo3 error layout if the HTTP status is not 200 or an empty string. The reason for the fallback should be logged.

Also available in: Atom PDF