Project

General

Profile

Actions

Bug #98501

closed

Cannot open uncached frontend with invoked f:translate view helper

Added by Andreas Kienast over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
Start date:
2022-10-02
Due date:
% Done:

100%

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

Description

Since #98377, the request passed to Fluid's rendering context is no ExtbaseRequestInterface anymore, which has an impact on the f:translate view helper. The view helper checks whether the request is a ExtbaseRequestInterface and falls back to Extbase's internal language setup.

This is not the case anymore and thus $GLOBALS['lang'] is undefined, the following exception is thrown:

PHP Warning: Undefined global variable $LANG in /var/www/html/typo3_src/typo3/sysext/fluid/Classes/ViewHelpers/TranslateViewHelper.php line 207

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Task #98377: Avoid Extbase Request init in StandaloneViewClosed2022-09-19

Actions
Related to TYPO3 Core - Bug #100176: Translations not available in v12.2 when using language key with country in site configResolved2023-03-15

Actions
Actions

Also available in: Atom PDF