Issue Bug Closed

#53735Fatal error in FileIdentifierHashUpdate

Alexander Stehlik 11/18/13, 14:27 updated 10/23/17, 21:46

Description

When executing the FileIdentifierHashUpdate I got an PHP error:

> Fatal error: Cannot use string offset as an array in /var/www/typo3_src/typo3_src-master/typo3/sysext/install/Classes/Updates/FileIdentifierHashUpdate.php on line 145

I found out that the reason for this error was a deleted record in the sys_file_storage table where the configuration field did not contain any data.

This lead to an error in the GeneralUtility::xml2array() call which returns a string in that case. Using this string as an array will not work.

It needs to be made sure that the FlexForm data in the configuration field is not empty and / or no parsing error occurs in xml2array().

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.