When using with levels and entryLevel set only but wihtout a given pageUid the ViewHelper fails with one of the following error messages in PHP 8.x on root level pages:
Core: Error handler (FE): PHP Warning: Trying to access array offset on value of type null in /var/www/html/public/typo3conf/ext/vhs/Classes/ViewHelpers/Menu/AbstractMenuViewHelper.php line 404
Core: Error handler (FE): PHP Warning: Undefined array key 1 in /var/www/html/public/typo3conf/ext/vhs/Classes/ViewHelpers/Menu/AbstractMenuViewHelper.php line 404
When using with levels and entryLevel set only but wihtout a given pageUid the ViewHelper fails with one of the following error messages in PHP 8.x on root level pages:
Core: Error handler (FE): PHP Warning: Trying to access array offset on value of type null in /var/www/html/public/typo3conf/ext/vhs/Classes/ViewHelpers/Menu/AbstractMenuViewHelper.php line 404
Core: Error handler (FE): PHP Warning: Undefined array key 1 in /var/www/html/public/typo3conf/ext/vhs/Classes/ViewHelpers/Menu/AbstractMenuViewHelper.php line 404
Reason is that
$pageUid = $rootLineData[$entryLevel]['uid'];
can only work, if
So there should be a check for both.