#18472Cleaner scripts crash with errors due to malformed flexform content
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)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.