TYPO3 Exception - File does not exist

1.4k views Asked by At

Am getting an exception in fluid template as follows.

#1314516810: File /uploads/tx_sfel_sfel/img_uploads/ffffff.jpg/ does not exist.

This image is not present in the 'img_uploads' directory.

But I don't want to show this exception.

How to prevent the page from showing this error.

Please help me to find a solution.

Thanks in advance.

1

There are 1 answers

0
Jonas On

You can install VHS and use the Viewhelper to check if there is this image. It will look like this:

{namespace v=FluidTYPO3\Vhs\ViewHelpers}
.
.
.
<v:media.exists file="{filepath}" >
         <f:then>
             [Your Image]
         </f:then>
</v:media.exists>
.
.
.