Bug #97972
closedFlexFormTools can not be used in frontend with form framework installed
0%
Description
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.
Files
Updated by Andreas Kienast over 2 years ago
- Sprint Focus set to On Location Sprint
Updated by Oliver Hader about 2 years ago
- Sprint Focus deleted (
On Location Sprint)
Updated by Christian Kuhn about 1 year ago
- Related to Bug #90784: Form plugin - Finishers : cannot translate "empty" value in labels added
Updated by Christian Kuhn about 1 year ago
- Related to Task #100676: Reduce further includeLLFile usages after getLL removal added
Updated by Christian Kuhn about 1 year ago
- Related to Bug #98992: form DataStructureIdentifierHook uses $GLOBALS['LANG'] which may not be initialized added
Updated by Christian Kuhn about 1 year 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.