Flexform sections can't be created until content element is saved
I have a very simple flexform (attached) which adds a section to a tt_content record. If i try to add items on it before saving the content, it is not added and the on the browse console I can get the error:
#1476107295: PHP Warning: Invalid argument supplied for foreach() in .../typo3_src/typo3/sysext/backend/Classes/Form/Container/FlexFormElementContainer.php line 47 (More information) TYPO3\CMS\Core\Error\Exception thrown in file .../typo3_src/typo3/sysext/core/Classes/Error/ErrorHandler.php in line 112.
Thought it was related to #80825, but the solution for it didn't solved this problem.
If the tt_content record is already saved, the items of section are added normally.
Other data not in sections works fine.
It works fine on TYPO3 7.
I've tested this on 8.7.1 and 8.7.2 and none works.
#2 Updated by Fabian König about 1 year ago
I have the exact same error in Typo3 Version 8.7.10. See my flexform.xml attached.
Is there a fix avaiable? Otherwise flexform sections cannot be used productive as the editor has to always save a newly created content element to avoid this error.