Bug #95102
closedUncaught TYPO3 Exception: Call to undefined method TYPO3\CMS\Core\Resource\ProcessedFile::setMissing()
100%
Description
Sometimes when a file preview doesn't exists in fileadmin storage an Exception is caught
request="4261316b5bf85" component="TYPO3.CMS.Core.Error.ProductionExceptionHandler": Core: Exception handler (WEB): Uncaught TYPO3 Exception: Call to undefined method TYPO3\CMS\Core\Resource\ProcessedFile::setMissing() | Error thrown in file MYSERVERPATH/typo3_src-10.4.20/typo3/sysext/core/Classes/Resource/ResourceStorage.php
/** * Gets a file by identifier. * * @param string $identifier * @return FileInterface */ public function getFile($identifier) { $file = $this->getFileFactory()->getFileObjectByStorageAndIdentifier($this->getUid(), $identifier); if (!$this->driver->fileExists($identifier)) { $file->setMissing(true); } return $file; }
Updated by Robert von Hackwitz about 3 years ago
- Target version set to Candidate for patchlevel
Updated by Gerrit Code Review 5 months ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85134
Updated by Gerrit Code Review 4 months ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85197
Updated by Georg Ringer 4 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset e17ff739ed95af12e8e46278c927ac74b78aad01.