Project

General

Profile

Actions

Bug #106652

open

Vimeo video rendering crashes if original file is missing from storage

Added by Benjamin Serfhos 14 days ago. Updated 4 days ago.

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.

Actions #1

Updated by Georg Ringer 12 days ago

  • Sprint Focus set to On Location Sprint
Actions #2

Updated by Garvin Hicking 4 days ago

  • Description updated (diff)
  • Status changed from New to Accepted
Actions

Also available in: Atom PDF