Bug #95102

Uncaught TYPO3 Exception: Call to undefined method TYPO3\CMS\Core\Resource\ProcessedFile::setMissing()

Added by Robert von Hackwitz about 2 months ago. Updated about 2 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Frontend
Start date:
2021-09-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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;
    }

#1

Updated by Robert von Hackwitz about 2 months ago

  • Target version set to Candidate for patchlevel

Also available in: Atom PDF