Bug #97972
closed
FlexFormTools can not be used in frontend with form framework installed
Added by David Mellen over 2 years ago.
Updated about 1 year ago.
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
- Sprint Focus set to On Location Sprint
- Sprint Focus deleted (
On Location Sprint)
- Related to Bug #90784: Form plugin - Finishers : cannot translate "empty" value in labels added
- Related to Task #100676: Reduce further includeLLFile usages after getLL removal added
- Related to Bug #98992: form DataStructureIdentifierHook uses $GLOBALS['LANG'] which may not be initialized added
- 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.
Also available in: Atom
PDF