FlexFormTools can not be used in frontend with form framework installed
When typo3/cms-form is installed the TYPO3\CMS\Form\Hooks\DataStructureIdentifierHook is being called in FlexFormTools causing a TypeError/call on null when there is no logged in backend user, because $GLOBALS['LANG'] is called in the constructor and returns null.
Updated by Christian Kuhn 4 months ago
- Status changed from New to Closed
Ok, this is still an issue in v11: The access to globals LANG in __construct() has been introduced with #90784, including v11, and has later been removed again with #100676 for v12. The hook still uses getLanguageService(), but only at deeper levels and certain circumstances.
However, I don't understand where the data structure identifier hook is called in FE at all when rendering forms, at least it wasn't triggered during tests on my side.
I tend to close the issue: I couldn't reproduce and it has been relaxed in v12. In case this is still a problem, it would be great to have insights where/why ext:form triggers that hook durnig FE rendering. Feel free to re-open or create a fresh issue if so and we'll see what we can do.