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 over 9 years ago. Updated about 6 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

Also available in: Atom PDF