Project

General

Profile

Actions

Bug #17888

closed

Fatal error: Cannot use string offset as an array in .... class.t3lib_tcemain.php on line 2133

Added by Peter almost 17 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2007-12-05
Due date:
% Done:

0%

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

Description

When using FlexForm for definition of input-fields, we got an error in the following case:
1.) Create an entry
2.) Delete this entry
3.) Trying to create a new entry will throw the following error:
Fatal error: Cannot use string offset as an array in /usr/Projekte/DAIMLER/server/DEV_T3_PORTAL/typo3_src/t3lib/class.t3lib_tcemain.php on line 2133

In function checkValue_flex_procInData_travDS (class.t3lib_tcemain.php on line) there ist a condition for calling $this->checkValue_flex_procInData_travDS in line: 2130 / 2131:
is_array($dataValues[$key]['el'][$ik][$theKey]['el'])

This condition is not enough. We have to add the following second condition:
if (is_array($dataValues_current) && is_array($dataValues_current[$key]) && is_array($dataValues_current[$key]['el'][$ik]) && is_array($dataValues_current[$key]['el'][$ik][$theKey]) ) {

The we have not errors anymore.

See screenshots.

Kind regards,
Peter

(issue imported from #M6892)


Files

screen_1.gif (36.6 KB) screen_1.gif Administrator Admin, 2007-12-05 14:05
screen_2.gif (41.3 KB) screen_2.gif Administrator Admin, 2007-12-05 14:06
Actions

Also available in: Atom PDF