Closed grischpel closed 1 year ago
With TYPO3 V11.5.21 / PHP8.1.13 / VHS 6.1.3 I got same php error: Core: Error handler (FE): PHP Warning: Undefined array key "hasSubPages" in /public/typo3conf/ext/vhs/Classes/ViewHelpers/Menu/AbstractMenuViewHelper.php line 314
We are affected too, TYPO3 V11.5.22 / PHP 8.1.14 / VHS 6.1.3
PHP Warning: Undefined array key "hasSubPages" in /var/www/beta.wtg.com/htdocs/www/public/typo3conf/ext/vhs/Classes/ViewHelpers/Menu/AbstractMenuViewHelper.php line 314
I change line 314 in AbstractMenuViewHelper.php to this
if (($page['active'] || $expandAll) && ($page['hasSubPages'] ?? '') && $level < $levels) {
Even when the Configuration Presets "Live" is selected, the Log-file contains this Warning. Therefore this bug should be fixed.
Has been solved in dev-development
since c78039646dc1dd43a4c070bb060a17c2102be777
(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception PHP Warning: Undefined array key "hasSubPages" in /public/typo3conf/ext/vhs/Classes/ViewHelpers/Menu/AbstractMenuViewHelper.php line 314