Project

General

Profile

Actions

Bug #101407

closed

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

Added by Steffen Mächtel 10 months ago. Updated 10 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2023-07-21
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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


Files

example_my_extension.zip (5.69 KB) example_my_extension.zip Small Example Plugin Extension to reproduce Steffen Mächtel, 2023-07-21 11:24
Multiple_Sites.png (27.5 KB) Multiple_Sites.png Backend with 2 Sites Steffen Mächtel, 2023-07-21 11:24
Page_Tree_1.png (9.76 KB) Page_Tree_1.png Result Page Tree 1 (after clear cache and reload) Steffen Mächtel, 2023-07-21 11:24
Page_Tree_2.png (12.9 KB) Page_Tree_2.png Result Page Tree 2 (opened after page tree 1) Steffen Mächtel, 2023-07-21 11:24
Blank_Line.png (51.6 KB) Blank_Line.png Steffen Mächtel, 2023-07-29 00:18
Works.png (49.4 KB) Works.png Steffen Mächtel, 2023-07-29 00:19

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #101177: Broken TypoScript cache handling in multisiteResolved2023-06-27

Actions
Related to TYPO3 Core - Feature #97816: New TypoScript parserClosed2022-06-27

Actions
Related to TYPO3 Core - Bug #101656: Using Include TypoScript in template fails to apply included templateClosed2023-08-11

Actions
Actions

Also available in: Atom PDF