Project

General

Profile

Actions

Bug #86230

closed

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

Added by Georg Tiefenbrunn over 5 years ago. Updated over 5 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 #1

Updated by Georg Tiefenbrunn over 5 years ago

  • Description updated (diff)
Actions #2

Updated by Georg Ringer over 5 years ago

  • Status changed from New to Accepted
  • Assignee set to Georg Ringer
Actions #3

Updated by Gerrit Code Review over 5 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

Actions #4

Updated by Georg Ringer over 5 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF