#109291TypoScript of parent sys_templates is parsed although a sys_template has set "Clear" for setup
Description
In my rootpage UID 1 I have a sys_template which has set “Clear” clear (for constants and setup) and “Rootlevel” root=true.
In this rootpage I have:
– in constants import ‘EXT:femanager/Configuration/TypoScript/Main/constants.typoscript’@ which contains the constant definition plugin.tx_femanager.settings.bootstrapCSS = 0
– in setup import ‘EXT:femanager/Configuration/TypoScript/Main/setup.typoscript’@ which contains the condition [0 < {$plugin.tx_femanager.settings.bootstrapCSS}]
Requesting the rootpage works without issues.
In a page UID 10 which is a subpage of UID 1 I have a sys_template which has also set “Clear” clear (for constants and setup) and “Rootlevel” root=true.
When I open “Included TypoScript” in the backend module on this subpage I see both definitions of the templates with Root and Clear:
included-typoscript.png
When I open “Active TypoScript” in the backend module on this subpage I see in the setup section that the condition has $plugin.tx_femanager.settings.bootstrapCSS in white (instead of red like another constant $page.theme.cookieconsent.enable which is defined in the subpage-sys_template:
active-typoscript.png
So apparently the “Clear” for constants on the subpage sys_template leads to the plugin.tx_femanager constants not being available.
So far so good, but requesting this page in the frontend adds the following message to the TYPO3 log:
Thu, 19 Mar 2026 12:48:06 +0100 [ERROR] request="f05913b46496b"
component="TYPO3.CMS.Core.TypoScript.IncludeTree.Visitor.IncludeTreeConditionMatcherVisitor":
TypoScript condition [0 < {$plugin.tx_femanager.settings.bootstrapCSS}] could not be parsed:
Unexpected character "$" around position 5 for expression `0 < {$plugin.tx_femanager.settings.bootstrapCSS}`.-
SyntaxError: Unexpected character "$" around position 5 for expression `0 < {$plugin.tx_femanager.settings.bootstrapCSS}`.,
in file /vendor/symfony/expression-language/Lexer.php:97
When parsing the typoscript for the frontend request the typoscript setup of the rootpage sys_template is parsed although “Clear” (for constants and setup) and “Rootlevel” are set to true on the subpage sys_template.
When I remove the “Clear” for constants on the subpage sys_template no more messages are added to the TYPO3 log.
I would have expected when “Clear” (for setup) on a subpage sys_template is set that the frontend request would completely ignore and not even parse the typoscript on all levels above.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] TypoScript of parent sys_templates is parsed although a sys_template has set "Clear" for setup Resolves: #109291 Releases: main