Issue Bug Closed

#107493Flexform sections are not initialized in FormEngine for EXT:form content plugin

Garvin Hicking 09/19/25, 12:22 updated 12/02/25, 13:04

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

History 45

  1. Oliver Bartsch commented <span data-processor="relativetime" data-value="2025-09-19T15:37:04+00:00" > 09/19/25, 15:37 </span>

    The reason for this is that FormFlexAjaxController assigns the resolved data structure to “$processedTca[‘columns’][$fieldName][‘config’][‘ds’]” and then calls FormDataCompiler, which executes form data providers, such as TcaColumnsOverrides, which overwrites ds again with the defined file.

    Have to think about a proper solution.

  2. Gerrit Code Review pushed patch set 1 for main to change 90736 status Accepted Under Review <span data-processor="relativetime" data-value="2025-09-19T20:24:00+00:00" > 09/19/25, 20:24 </span>

  3. Oliver Bartsch commented and changed status Under Review Resolved done 0 % 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.