vhs
vhs copied to clipboard
<v:asset.style/> makes the page crash : "count(): Parameter must be an array"
I uses the v:asset.style viewhelper to include my assets to my page, and this was working very well until I updated VHS from 6.1.2 => 6.1.3 Now, this viewhelper makes the page crash, and I got this error :
TYPO3\CMS\Core\Error\Exception
PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/typo3/public/typo3conf/ext/vhs/Classes/Service/AssetService.php line 217
To reproduce, simply add these lines to your page :
<v:asset.style name="fontAwesome"
path="path/to/css/all.min.css"/>
Typo3 10.4.34 Php 7.4.11