Project

General

Profile

Actions

Bug #79926

closed

InvalidTemplateResourceException never thrown

Added by Markus Gerdes almost 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Fluid
Target version:
Start date:
2017-02-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

typo3_src/vendor/typo3fluid/fluid/src/View/TemplatePaths.php Line 588 seems not to reachable.

Reproduce:
1. set templateRootPaths.0 to another location with a typo in the path name
2. open the page where the template should be rendered.

Default template is used instead of displaying an error message

In my case I had tx_hairu and configured fileadmin/Resources/Private/hairu/Templates/ via constants
The path to the templates was fileadmin/Resources/Private/hairu/Template/ (missing s)

The following line seems to always add the default path to the configured path
$paths[$name] = array_merge($defaultPaths, (array)$configuredPaths[$name]);

this line in 8.5.1
$paths[$name] = (array)$configuredPaths[$name] + $defaultPaths;

So in the end the default template was used to render the LoginForm.

I would think that, this is not the desired behaviour.


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #81099: Extension cannot override default (fallback) templateRootPaths/partialRootPaths/partialRootPathsClosed2017-05-01

Actions
Actions

Also available in: Atom PDF