Actions
Bug #106652
openVimeo video rendering crashes if original file is missing from storage
Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
Start date:
2025-05-06
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
13
PHP Version:
8.2
Tags:
Complexity:
trivial
Is Regression:
Sprint Focus:
On Location Sprint
Description
PHP Warning: Undefined array key 0 in /var/www/html/vendor/typo3/cms-core/Classes/Resource/Rendering/VimeoRenderer.php line 133
If a .vimeo file is deleted from storage the video id parsed returns null.
$videoIdRaw = $this->getVideoIdFromFile($file); $videoIdRaw = GeneralUtility::trimExplode('/', $videoIdRaw, true); $videoId = $videoIdRaw[0];
The output of $videoIdRaw
is null
, so the trimExplode returns an empty array.
A simple null coalesce should solve this issue.
Updated by Garvin Hicking 4 days ago
- Description updated (diff)
- Status changed from New to Accepted
Actions