Bug #67620
closedIllegal string offset 'switchableControllerActions' in /typo3/sysext/backend/Classes/Form/DataPreprocessor.php line 575
100%
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
Updated by Gerrit Code Review over 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
Updated by Gerrit Code Review over 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
Updated by Bernd Niehues over 9 years ago
I've reviewed and marked as reviewed (I think). Everything fine.
Updated by Gerrit Code Review over 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
Updated by Wouter Wolters over 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 62396c809e846da1d7a68f16f8666b89ba97cf2f.