-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: Missing site attribute in request with TYPO3 12.4.9 #2145
Comments
Not to dismiss the problem, but: you should not be using |
This also fails for TYPO3 v12.4.10, Flux 10.0.9.
What does this mean?
This fails with the same error. For instance:
So what is the recommended way to translate the backend? TYPO3 itself uses f:translate too |
Hi @NamelessCoder , do you see another alternative if I want to use a translated element (f:translate) e.g. with a flux:field.custom element output a hint box for an editor ? |
Hi there,
we encounter an exception with Flux 10.0.8 and TYPO3 12.4.9:
(null is expected to be a site)
Describe the bug
Any use of LocalizationUtility within a Flux template (e.g. f:translate within a configuration section) will lead to the exception.
Additional context
This change in TYPO3 Core uses the request type to decide how to get a locale and uses the requests site attribute for frontend requests: TYPO3/typo3@490f12697b
This is always creating a frontend request with the site attribute missing:
https://github.com/FluidTYPO3/flux/blob/development/Classes/Builder/RequestBuilder.php#L85
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: