Actions
Bug #98501
closedCannot open uncached frontend with invoked f:translate view helper
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
Actions