Bug #86230
closed@import a file in non-existing folder disables BE and FE
100%
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'.
Updated by Georg Ringer about 6 years ago
- Status changed from New to Accepted
- Assignee set to Georg Ringer
Updated by Gerrit Code Review about 6 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58251
Updated by Georg Ringer about 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 1ff01bcb74a4ce73493bce0969222b02e5e85add.