BoxerBuffa
(Finn Thorwarth)
August 18, 2021, 9:57am
1
Hey, i got a Problem I can not create new Users.
The error message is the following.
Exception #1243258395 in line 179 of /html/website-2021/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/Neos_Neos_Controller_Module_Administration_UsersController.php: The message body must be of type string, "NULL" given.
53 Neos\Flow\Mvc\Controller\AbstractController_Original::addFlashMessage(NULL, NULL, "OK", array|0|, 1416225561)
52 Neos\Neos\Controller\Module\Administration\UsersController_Original::createAction("andreas", array|2|, Neos\Neos\Domain\Model\User, array|1|, "")
BoxerBuffa
(Finn Thorwarth)
August 18, 2021, 12:26pm
2
I found a solution:
Adding the following:
Neos:
Flow:
i18n:
defaultLocale: de
fallbackRule:
order: ['en']
opened 02:43PM - 14 May 21 UTC
Bug
<!--
If you are reporting a new issue, make sure that we do not have any duplic… ates
already open. You can ensure this by searching the issue list for this
repository. If there is a duplicate, please close your issue and add a comment
to the existing issue instead.
-->
### Description
When switching the default UI language to German, we ran into problems because of missing translation labels. For example, `login.wrongCredentials.title` is missing in the German translation files, which leads to a breaking error. This is because the Translator in Neos.Flow returns `null`, which is not accepted by the `addFlashMessage`method.
### Steps to Reproduce
1. Switch the default UI language
```
Neos:
Flow:
i18n:
defaultLocale: de
Neos:
userInterface:
defaultLanguage: de
```
2. Log-in with wrong credentials
3. See the error message
#### Expected behavior
Either the translation should be set, or otherwise a fallback should be rendered.
#### Actual behavior
The fallback is not rendered, instead I get a fatal error: `The message body must be of type string, "NULL" given.`
### Affected Versions
<!--
If you want to be a super-hero, try to find out the oldest supported version
affected by the bug you describe. Thanks!
-->
Neos: 7.1
Flow: 7.1