Bug #81684

Flexform sections can't be created until content element is saved

Added by José Ricardo about 2 years ago. Updated 5 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-06-22
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi,

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.

Components.xml View (1.73 KB) José Ricardo, 2017-06-22 20:43

flexform_quickgooglemap.xml View (10.1 KB) Fabian König, 2018-09-10 16:35

History

#1 Updated by José Ricardo about 2 years ago

  • Related to Bug #80825: FlexForm Sections don't get saved before the parent record was stored to the DB added

#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.

#3 Updated by Fabian König about 1 year ago

  • Related to deleted (Bug #80825: FlexForm Sections don't get saved before the parent record was stored to the DB)

#4 Updated by Lorenz Ulrich 10 months ago

I have the same issue. Somehow it only seems to be an issue of you use type array. I will see what I find out.

#5 Updated by Lorenz Ulrich 5 months ago

Did any of the watchers find a solution to this yet?

Also available in: Atom PDF