Issue Bug Closed

#98501Cannot open uncached frontend with invoked f:translate view helper

Andreas Kienast 10/02/22, 14:51 updated 10/04/22, 08:36

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

Reviews 1