Review 13.4 Merged

88709[TASK] Improve PAGEVIEW error message for missing template files

Benni Mack CR +2 V +2 Easy +39 −2 updated 03/24/25, 20:16

Commit message

The exception thrown by Fluid, in case a template is not found, looks
like this:

```
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:
.../typo3conf/ext/test_fluidpagerendering/Resources/Private/
Templates/WrongPath/
```

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.

This change improves the error 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/WrongPath/Pages/
Standard.html
```

Review

  • Code review CR +2 Done
    • Benni Mack +2
  • Verified V +2 Done
    • Benni Mack +2
    • core-ci +1 CI

Issues 1

Files 3

Review log 34

  1. Benni Mack commented on patch set 1 03/24/25, 20:05

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 03/24/25, 20:14 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/76168

  3. Benni Mack voted on patch set 1 CR +2 V +2 03/24/25, 20:16

  4. Benni Mack merged patch set 2 03/24/25, 20:16