Issue Bug Closed

#89077Use of Environment Variable in SiteConfiguration produces unexpected behaviour in the backendmodule

Daniel Hoffmann 09/04/19, 13:30 updated 11/13/26, 12:43

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.

History 6

  1. Mirko Schade commented <span data-processor="relativetime" data-value="2021-07-08T09:57:07+00:00" > 07/08/21, 09:57 </span>

    This also exists in TYPO3 10.4.17. The configuration still works, just the backend view is broken as described by Daniel.

  2. Daniel Hoffmann commented and changed TYPO3 Version 9 12 PHP Version 7.2 8.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.

  3. 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