Project

General

Profile

Actions

Bug #46049

closed

Fatal Error in FlexFormService->convertFlexFormContentToArray()

Added by Stefan Derungs over 11 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2013-03-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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


Files

bug46049.diff (3.87 KB) bug46049.diff Proposed patch Sven Carstens, 2016-04-20 17:01
Actions

Also available in: Atom PDF