#46049Fatal Error in FlexFormService->convertFlexFormContentToArray()
Description
When creating own Flexforms for extensions with different kind of field types (i.e. simple input/checkboxes/etc.), a fatal error occurs in class FlexFormService.
Fatal error: Cannot create references to/from string offsets nor overloaded objects in /.../typo3/sysext/extbase/Classes/Service/FlexFormService.php on line 58
The related code part:
public function convertFlexFormContentToArray($flexFormContent, $languagePointer = 'lDEF', $valuePointer = 'vDEF') {
...
} else {
$valueKeyParts = explode('.', $valueKey);
$currentNode =& $settings;
foreach ($valueKeyParts as $valueKeyPart) {
*$currentNode =& $currentNode[$valueKeyPart];* // Fatal error occurs in this line
}
...
}
I started wondering, if this is a bug of the current version (I use 6.0.2), as I can reproduce the error on several installations (with PHP 5.3.3) and the PHPUnit-Tests of Extbase only complete with errors.
Btw., it also doesn’t matter of which type the flexform field is (input/int or input/select or check).