Project

General

Profile

Actions

Bug #53735

closed

Fatal error in FileIdentifierHashUpdate

Added by Alexander Stehlik over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2013-11-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
easy
Is Regression:
Yes
Sprint Focus:

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().

Actions

Also available in: Atom PDF