Issue Bug Closed

#101407ext_typoscript_setup.typoscript is only available in one Page Tree (Multiple Sites)

Steffen Mächtel 07/21/23, 11:30 updated 07/09/24, 14:15

Description

Only affectes installation with Multiple Sites Configuration (2 or more). Issue is only in TYPO3 12. Tested with 12.4.1 – 12.4.3.

When caching is enabled (Production) and an extension have an ext_typoscript_setup.typoscript in extension root, the typoscript is only avalailable in one PageTree (One Site).

Example Code

EXT:my_extension/ext_typoscript_setup.typoscript

plugin.tx_myextension {
    view {
        templateRootPath >
        templateRootPaths {
            10 = EXT:my_extension/Resources/Private/SomeDifferentDirectory/Templates/
        }
    }
}

This should be available in every page tree.

Steps to reproduce: (see example_my_extension.zip attached)

1) New Clean TYPO3 12.4.3 installation (or 12.4.1, 12.4.2)

2) Have 2 Sites (PageTrees) in one Installation: example1.local and example2.local

3) Place the Plugin (“My Extension”) on both Page Trees.

Test:

- Clear Cache
- Call Frontend www.example-1.com => typocript (Change of template path available)
- Call same Frontend again www.example-1.com => still working, all good
- Call Frontend www.example-2.com => Error, typoscript not available

Swap the test:

- Clear Cache
- Call Frontend www.example-2.com => typocript (Change of template path available)
- Call same Frontend again www.example-2.com => still working, all good
- Call Frontend www.example-1.com => Error, typoscript not available

Reviews 2