Project

General

Profile

Actions

Bug #94109

closed

The Typoscript template analyzer displays an error with getEnv

Added by Rémy DANIEL over 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2021-05-11
Due date:
% Done:

100%

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

Description

I follow the possibility to "inject" environment variable in Typoscript, as described in the docs:

https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/9.4/Feature-85146-ReadEnvironmentVariablesInTypoScript.html?highlight=getenv

The parsing and the "injection" work well, but the Typoscript template analyzer displays an error:


Files

image.png (20.3 KB) image.png Rémy DANIEL, 2021-05-11 14:32
Actions #1

Updated by Mathias Brodala over 3 years ago

  • Description updated (diff)
Actions #2

Updated by Gerrit Code Review almost 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72468

Actions #3

Updated by Jochen Roth almost 3 years ago

The TypoScript i used for testing:

page = PAGE
page.5 = TEXT
page.5.value = ENV__TYPO3_CONTEXT
page.5.value := getEnv(TYPO3_CONTEXT)

page.10 = TEXT
page.10.value = <hr>

page.15 = TEXT
page.15.value = ENV_DOES_NOT_EXIST
page.15.value := getEnv(ENV_DOES_NOT_EXIST)

page.20 = TEXT
page.20.value = <hr>

page.25 = TEXT
page.25.value = Bad_Value
page.25.value :

Actions #4

Updated by Gerrit Code Review almost 3 years ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72468

Actions #5

Updated by Gerrit Code Review almost 3 years ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72420

Actions #6

Updated by Anonymous almost 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Benni Mack about 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF