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 #1

Updated by Andreas Kienast over 1 year ago

  • Related to Task #98377: Avoid Extbase Request init in StandaloneView added
Actions #2

Updated by Gerrit Code Review over 1 year ago

  • Status changed from In Progress 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/+/75941

Actions #3

Updated by Gerrit Code Review over 1 year 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/+/75941

Actions #4

Updated by Gerrit Code Review over 1 year ago

Patch set 3 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/+/75941

Actions #5

Updated by Gerrit Code Review over 1 year ago

Patch set 4 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/+/75941

Actions #6

Updated by Andreas Fernandez over 1 year ago

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

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions #8

Updated by Chris Müller about 1 year ago

  • Related to Bug #100176: Translations not available in v12.2 when using language key with country in site config added
Actions

Also available in: Atom PDF