#89077Use of Environment Variable in SiteConfiguration produces unexpected behaviour in the backendmodule
Description
If in config.yaml the value
rootPageId: “env(rootpage_id)”
is set, the listing in the backend-module works fine, but if you try to edit the site configuration, the field rootPageId show a “Not allowed” Message and all languagesettings are gone.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 1
History 6
-
Daniel Hoffmann commented and changed TYPO3 Version
912 PHP Version7.28.2 <span data-processor="relativetime" data-value="2023-05-03T12:51:45+00:00" > 05/03/23, 12:51 </span>Also exists in v12, produces a php warning when opening the details of the site configuration.
-
Georg Ringer commented <span data-processor="relativetime" data-value="2024-06-11T18:35:34+00:00" > 06/11/24, 18:35 </span>
warning can be fixed with
$siteConfigurationForPageUid = (int)($result['databaseRow']['rootPageId'][0] ?? $result['databaseRow']['rootPageId']);
but don’t know how to proceed there, sry
-
Garvin Hicking changed Tags yaml env <span data-processor="relativetime" data-value="2024-06-14T22:01:32+00:00" > 06/14/24, 22:01 </span>
-
Garvin Hicking changed Related to #108346 <span data-processor="relativetime" data-value="2025-11-27T12:33:25+00:00" > 11/27/25, 12:33 </span>
-
Garvin Hicking commented and changed status
NewClosed <span data-processor="relativetime" data-value="2026-11-13T12:43:37+00:00" > 11/13/26, 12:43 </span>Solved with https://forge.typo3.org/issues/108346
This also exists in TYPO3 10.4.17. The configuration still works, just the backend view is broken as described by Daniel.