#107493Flexform sections are not initialized in FormEngine for EXT:form content plugin
Description
Trying to create flexform sections in formengine does not work since #107047 – a HTTP/500 error is thrown as an AJAX request complaining about a type error:
https://typo3-core-bugreproduce-base.ddev.site/typo3/ajax/record/flex/containeradd?token=…
```
(1/1) TypeError
Cannot access offset of type string on string
in /var/www/html/typo3-core/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaFlexPrepare.php line 91
```
This stems from the fact that the accessed value:
```
$dataStructureArray = $result[‘processedTca’][‘columns’][$fieldName][‘config’][‘ds’];
```
in line 88 of typo3/sysext/backend/Classes/Form/FormDataProvider/TcaFlexPrepare.php which resolves to a string (the name of the XML flexform file) and not an array with the whole datastructure.
Likely, the whole if() structure of the non-else case before needs to be replicated in the else case as well, to properly resolve the ds structure?
Can be reproduced for example with an EXT:form content plugin, activating form finisher overrides, and then using the “+ recipient” buttons.
This must be specific to EXT:form somehow, because EXT:styleguide “flex – section container” does not exhibit this error.
Reviews 1
Related issues 1
History 45
-
Garvin Hicking changed Related to #107047 <span data-processor="relativetime" data-value="2025-09-19T12:22:58+00:00" > 09/19/25, 12:22 </span>
-
Oliver Bartsch commented <span data-processor="relativetime" data-value="2025-09-19T15:37:04+00:00" > 09/19/25, 15:37 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 90736 status
AcceptedUnder Review <span data-processor="relativetime" data-value="2025-09-19T20:24:00+00:00" > 09/19/25, 20:24 </span> -
Oliver Bartsch commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2025-09-21T19:35:08+00:00" > 09/21/25, 19:35 </span>Applied in changeset commit:da22f9f32a268481406b22011f04744180f4998d.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-12-02T13:04:30+00:00" > 12/02/25, 13:04 </span>
The reason for this is that
FormFlexAjaxControllerassigns the resolved data structure to “$processedTca[‘columns’][$fieldName][‘config’][‘ds’]” and then calls FormDataCompiler, which executes form data providers, such asTcaColumnsOverrides, which overwritesdsagain with the defined file.Have to think about a proper solution.