Project

General

Profile

Actions

Bug #60773

closed

Fatal error: Call to a member function getName() on a non-object in typo3/sysext/core/Classes/Resource/ResourceStorage.php on line 1377`

Added by Frank Nägler over 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2014-08-04
Due date:
% Done:

100%

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

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

Actions #1

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

Actions #2

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

Actions #3

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

Actions #4

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

Actions #5

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

Actions #6

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

Actions #7

Updated by Frank Nägler about 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF