TYPO3 Exception 1509741912 

Insights from the code 

A comment in the code associated with this exception explains that it is “thrown if a file has been replaced with a folder.”

Added in TYPO3 v9.0 • Confirmed present in TYPO3 v13.1

Supplied file object type ProcessedFile for must be File or FileReference 

Concerned Version: TYPO3 Version 9.2.1

Related issues:

When moving some files in the File-module with the clipboard this Error Message is shown:

#1509741912: Supplied file object
type TYPO3\CMS\Core\Resource\ProcessedFile for must be
File or FileReference.
Copied!

Unable to render image tag in "tt_content:xxxx": Supplied file must be File or FileReference, TYPO3\CMS\Core\Resource\Collection\LazyFileReferenceCollection given 

This message appears with content-blocks if you try display an image (or a file) directly with for example:

<f:image image="{data.image}" width="42" maxHeight="48" />
Copied!

images and files are collections with content-blocks, you need to use a <f:for> loop to display them:

<f:for each="{data.image}" as="image">
    <f:image image="{image}" width="42" maxHeight="48" />
</f:for>
Copied!

or if you're sure the file exists, you can also use:

<f:image image="{data.image.0}" width="42" maxHeight="48" />
Copied!