Project

General

Profile

Actions

Bug #67620

closed

Illegal string offset 'switchableControllerActions' in /typo3/sysext/backend/Classes/Form/DataPreprocessor.php line 575

Added by Bernd Niehues about 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2015-06-19
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

When trying to edit a backend content element (plugin) which includes a flexform file the above error is thrown.
renderRecord_flexProc_procInData has a $sheetDef-Array with lDEF-Key and a l(ISO2)-Key for each configured language.
For me it looks like that:

lDEF -> switchableControllerActions ...
lDE -> ''
lES -> ''
lFR -> ''

It iterates through the array and calls renderRecord_flexProc_procInData_travDS for each element.
In line 575 it trys to check if $dataValues[$key] is an array, which it is in case of lDEF.
But in case of lDE there is no $dataValues[$key] and so the error is thrown

So my solution would be (and is solving the problem in my case): Change line 575 from

if (is_array($dsConf['TCEforms']['config']) && is_array($dataValues[$key])) {

to
if (is_array($dsConf['TCEforms']['config']) && isset($dataValues[$key]) && is_array($dataValues[$key])) {

in /typo3/sysext/backend/Classes/Form/DataPreprocessor.php


Files

flexform_findparking.xml (1003 Bytes) flexform_findparking.xml Bernd Niehues, 2015-06-19 09:27
Actions #1

Updated by Gerrit Code Review about 9 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/40512

Actions #2

Updated by Gerrit Code Review about 9 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/40512

Actions #3

Updated by Bernd Niehues about 9 years ago

I've reviewed and marked as reviewed (I think). Everything fine.

Actions #4

Updated by Gerrit Code Review about 9 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/40532

Actions #5

Updated by Wouter Wolters about 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF