Issue Bug Closed

#62480Deleting a file with broken references via BE module not possible

Cornel Boppart 10/26/14, 19:45 updated 10/02/18, 11:51

Description

A file with broken FAL references cannot get deleted via the TYPO3 backend module File>Filelist. Such broken references for instance could occure after a manual data migration/import or deletion of one or more referenced records by executing db queries via command line.
Currently, a fatal error occures in cause of that $shortcutRecord is NULL and not type of array but is passed as the second argument of method \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIconForRecord().

A redactor which only has access to files via BE module wouldn’t be able to delete such a physical file but would see a thrown error [1].

This patch [3] will solve this issue by deleting the file with corrupt relations anyway and outputting a common flash message by informing about there were broken references [2].

[1] error-fileWithBrokenReferences.png
2 info-FileWithBrokenReferences.png
3 deleteFileWithBrokenReferences.png

Reviews 2