Project

General

Profile

Actions

Bug #86230

closed

@import a file in non-existing folder disables BE and FE

Added by Georg Tiefenbrunn about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
TypoScript
Target version:
-
Start date:
2018-09-11
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Assume you import a TS file in a template (sys_template) and made a typo in the path or renamed a folder:

<INCLUDE_TYPOSCRIPT: source="FILE:EXT:myext/Configuration/TypoScript/Sites/non-existing/setup.typoscript">

BE and FE will still work. Module 'Template Tools' will show a warning:

Warning : File "EXT:myext/Configuration/TypoScript/Sites/non-existing/setup.typoscript" was not found.

Now switch to the new @import syntax and hit the save button:

@import 'EXT:myext/Configuration/TypoScript/Sites/non-existing/setup.typoscript'

The template record is successfully saved and the edit form of the template is displayed again. But any other action in BE and FE will now throw an InvalidArgumentException 'The "/var/www/.../non-existing" directory does not exist. in Finder.php line 547'.

Actions

Also available in: Atom PDF