Bug #102065
closedInvalid TypoScript import causes the complete file to be ignored
100%
Description
Using an invalid import within a TypoScript file causes the file to be skipped/ignored entirely.
Example file:
<INCLUDE_TYPOSCRIPT: source="DIR:./Setup/">
<INCLUDE_TYPOSCRIPT: source="DIR:../global/Setup/">
The second import is invalid, but also the first import is ignored.
I would expect to have only the faulty include line to be ignored.
The missing error reporting is documented with #102064.
Updated by Markus Klein about 1 year ago
- Related to Bug #102064: TypoScript module does not report errors added
Updated by Markus Klein about 1 year ago
- Status changed from New to Needs Feedback
Debugging shows that it's not ignored, only the path-resolution of `DIR:./Setup/` seems to fail too. It uses the public directory, instead of the location of the current TS file.
Updated by Markus Klein about 1 year ago
- Status changed from Needs Feedback to Accepted
The behavior is documented here: https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/Configuration/TypoScript/Syntax/FileImports/Index.html
But not mentioned here: https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.0/Breaking-97816-TypoScriptSyntaxChanges.html
So the Breaking-Change docs need an update.
Updated by Gerrit Code Review about 1 year ago
- Status changed from Accepted to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81298
Updated by Gerrit Code Review about 1 year ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81298
Updated by Gerrit Code Review about 1 year ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81298
Updated by Gerrit Code Review about 1 year ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81356
Updated by Markus Klein about 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 83c4618276925232c0f3b259ceea1e7b1f1a7155.