Project

General

Profile

Actions

Bug #18472

closed

Cleaner scripts crash with errors due to malformed flexform content

Added by Daniel Minder about 16 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-03-18
Due date:
% Done:

0%

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

Description

cleaner_check.sh, cleaner_fix.sh and the BE function "Update reference index" (subfunctions test and update) crash with error "Cannot use string offset as an array in class.t3lib_flexformtools.php" on lines 223 and 266.

The problem disappears if "lowlevel_cleaner cleanflexform" fixes the flexform contents. (I have not tested if cleanflexform runs without the patch on class.t3lib_flexformtools.php).

However, the best solution is to add two additional checks to class.t3lib_flexformtools.php that assure that arrays are existing before its elements are accessed (see attached diff).

(issue imported from #M7894)


Files

class.t3lib_flexformtools.php.diff (411 Bytes) class.t3lib_flexformtools.php.diff Administrator Admin, 2008-03-18 18:16

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #64914: Cleaner scripts crashes due to incomplete flexform contentClosedJose Antonio Guerra2015-02-06

Actions
Is duplicate of TYPO3 Core - Bug #17237: Fatal error: Cannot use string offset as an array in C:\xampp\htdocs\dev\TYPO\dummy\t3lib\class.t3lib_flexformtools.php on lineClosedFrancois Suter2007-04-24

Actions
Actions #1

Updated by Christian Kuhn almost 15 years ago

Resolved as duplicate of #17237

Please look in #17237 for discussion and progress on this error.

Actions #2

Updated by Francois Suter over 12 years ago

  • Status changed from Resolved to Closed
  • Target version deleted (0)
Actions

Also available in: Atom PDF