Issue Bug Closed

#96503Commented out TypoScript imports still resolved.

Lina Wolf 01/11/22, 09:54 updated 10/04/22, 14:14

Description

I have a bunch of imports in my setup.typoscript that for some reason mess up my system and made the backend freeze due to a circular include.

It turns out that an import within a block-comment is still executed:

/*
@import 'EXT:fluid_styled_content/Configuration/TypoScript/setup.typoscript'
...
*/
/*

### @import 'EXT:fluid_styled_content/Configuration/TypoScript/setup.typoscript' begin ###

# Include setup

### <INCLUDE_TYPOSCRIPT: source="FILE:EXT:fluid_styled_content/Configuration/TypoScript/Helper/ContentElement.typoscript"> BEGIN:
# Default configuration for content elements which are using FLUIDTEMPLATE directly
lib.contentElement >
lib.contentElement = FLUIDTEMPLATE

...

So a circular includes within a block-comment still makes the backend freeze.

imports within single line comments are however not executed:

# @import 'EXT:fluid_styled_content/Configuration/TypoScript/setup.typoscript'

If this is not a bug but a feature we would need to document it better…

Reviews 2