.. include:: /Includes.rst.txt
==========================
TYPO3 Exception 1509741912
==========================
.. include:: /If-you-encounter-this-exception.rst.txt
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:
- https://forge.typo3.org/issues/84578 (closed)
- https://forge.typo3.org/issues/84343 (closed)
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.
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:
::
images and files are collections with content-blocks, you need to use a loop to display them:
::
or if you're sure the file exists, you can also use:
::