Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v:media.video unknown type "" #1815

Open
timofo opened this issue Dec 6, 2022 · 0 comments
Open

v:media.video unknown type "" #1815

timofo opened this issue Dec 6, 2022 · 0 comments

Comments

@timofo
Copy link

timofo commented Dec 6, 2022

Hello,

with TYPO3 11.5.19 and vhs 6.1.2, i determine an error with v:media.video
I get the error unknown type ""

In file /Classes/ViewHelpers/Media/VideoViewHelper.php in line 135 you have to make following change to make it work.

$src = mb_substr(GeneralUtility::getFileAbsFileName(ltrim($source,"/")), mb_strlen(CoreUtility::getSitePath()));

Original line:

$src = mb_substr(GeneralUtility::getFileAbsFileName($source), mb_strlen(CoreUtility::getSitePath()));

You have to remove the leading "/" in the source string. On the other hand, you get an empty string from getFileAbsFileName and the type is "" (empty)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant