Issue Task Closed

#106372Improve error message when a PAGEVIEW template is not found.

Lina Wolf 03/15/25, 17:51 updated 12/02/25, 14:22

Description

Currently an exception like the following is thrown:

TYPO3Fluid\Fluid\View\Exception\InvalidTemplateResourceException: Tried resolving a template file for controller action “Default->Pages/Standard” in format “.html”, but none of the paths contained the expected template file (Default/Pages/Standard.html). The following paths were checked: /home/www/typo3/t3coredev/typo3temp/var/tests/functional-4db4d33/typo3conf/ext/test_fluidpagerendering/Resources/Private/Templates/Pages/

However the integrator using the PAGEVIEW TypoScript object is not using any controllers or actions. There is no information on where the error happened or how to configure it.

I would suggest to improve the exception message like this:
PAGEVIEW TypoScript object: Failed to resolve the expected template file “Pages/Standard.html” for layout “Standard”. See also: https://docs.typo3.org/permalink/t3tsref:cobj-pageview@14.0. The following paths were checked: EXT:test_fluidpagerendering/Resources/Private/Templates/Pages/Pages/Standard.html

Reviews 4

History 410

  1. Lina Wolf commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-03-24T20:10:09+00:00" > 03/24/25, 20:10 </span>

    Applied in changeset commit:0b2760b2ed11fdb0451427ae0ac3ace122d68347.