Project

General

Profile

Actions

Bug #89077

open

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

Added by Daniel Hoffmann about 5 years ago. Updated 5 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2019-09-04
Due date:
% Done:

0%

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

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.

Actions #1

Updated by Mirko Schade over 3 years ago

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

Actions #2

Updated by Daniel Hoffmann over 1 year ago

  • TYPO3 Version changed from 9 to 12
  • PHP Version changed from 7.2 to 8.2

Also exists in v12, produces a php warning when opening the details of the site configuration.

Actions #3

Updated by Georg Ringer 5 months ago

warning can be fixed with

 $siteConfigurationForPageUid = (int)($result['databaseRow']['rootPageId'][0] ?? $result['databaseRow']['rootPageId']);

but don't know how to proceed there, sry

Actions #4

Updated by Garvin Hicking 5 months ago

  • Tags set to yaml env
Actions

Also available in: Atom PDF