Bug #60773
closedFatal error: Call to a member function getName() on a non-object in typo3/sysext/core/Classes/Resource/ResourceStorage.php on line 1377`
100%
Description
this happens, because \TYPO3\CMS\Core\Resource\ResourceFactory::findByStorageAndIdentifier
can return null, which is returned by \TYPO3\CMS\Core\Resource\ResourceFactory::getFileObjectByStorageAndIdentifier
in line 410 in.
the return annotation of getFileObjectByStorageAndIdentifier is also wrong current value is return File|ProcessedFile
but this should be return null|File|ProcessedFile
I think adding a check like if ($fileObject instanceof \TYPO3\CMS\Core\Resource\AbstractFile) {
is the best way to fix it.
a hint from Helmut Hummel:
if getFilesInFolder should be able to return processed files, then this needs indeed to be fixed, as any old processed file (present in fs but not in db) will cause a fatal
Updated by Gerrit Code Review about 10 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32713
Updated by Gerrit Code Review about 10 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32713
Updated by Gerrit Code Review about 10 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32713
Updated by Gerrit Code Review about 10 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32713
Updated by Gerrit Code Review about 10 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32713
Updated by Gerrit Code Review about 10 years ago
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33612
Updated by Frank Nägler about 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset a7b0e3833faa92cc1dc0e9f3d93d456d0f9e4d57.