Issue Bug Closed

#98543f:media viewhelper should display an error if youtube file not found

Lina Wolf 10/06/22, 18:55 updated 03/27/25, 11:59

Description

I moved my database to the production server without considering that there is also a file saved for a youtube link. So I had the sys_file_reference but no file.

I would expect that the viewhelper displays an error in this case.

What happened though was an I frame where the name id of the video was missing:

```
<iframe src="https://www.youtube-nocookie.com/embed/?autohide=1&amp;controls=1&amp;enablejsapi=1&amp;origin=https%3A%2F%2Frelaunch.example.de" allowfullscreen width="600" height="337" class="video-embed-item" title="MyVideo" allow="fullscreen" tc-textcontent="true" data-tc-id="w-0.8615194315175201"></iframe>
```

The browser then gives you strange errors about the request being blocked due to CORS policy. It is not easy to find the real issue.

I would expect that the <f:media> viewhelper displays or throws an error in such a case.</f:media>

TYPO3 11.5.16, PHP 8.0

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.