You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP 8.1
we use v:asset.script without path just with content. E.g.
<v:asset.script name="...">
some code
</v:asset.script>
in FluidTYPO3\Vhs\Service\AssetService->extractAssetContent there ist:
$fileRelativePath = dirname($assetSettings['path']);
which trows an error because $assetSettings['path'] is null.
simple fix is to change the lines:
$fileRelativePath = dirname($assetSettings['path']);
$absolutePathAndFilename = GeneralUtility::getFileAbsFileName($fileRelativePathAndFilename);
to
if($fileRelativePathAndFilename) {
$fileRelativePath = dirname($assetSettings['path']);
$absolutePathAndFilename = GeneralUtility::getFileAbsFileName($fileRelativePathAndFilename);
}
The text was updated successfully, but these errors were encountered:
PHP 8.1
we use v:asset.script without path just with content. E.g.
<v:asset.script name="...">
some code
</v:asset.script>
in FluidTYPO3\Vhs\Service\AssetService->extractAssetContent there ist:
$fileRelativePath = dirname($assetSettings['path']);
which trows an error because $assetSettings['path'] is null.
simple fix is to change the lines:
$fileRelativePath = dirname($assetSettings['path']);
$absolutePathAndFilename = GeneralUtility::getFileAbsFileName($fileRelativePathAndFilename);
to
if($fileRelativePathAndFilename) {
$fileRelativePath = dirname($assetSettings['path']);
$absolutePathAndFilename = GeneralUtility::getFileAbsFileName($fileRelativePathAndFilename);
}
The text was updated successfully, but these errors were encountered: