FluidTYPO3 / vhs

TYPO3 extension VHS: Fluid ViewHelpers
https://fluidtypo3.org
Other
189 stars 228 forks source link

Undefined array key "hasSubPages" #1822

Closed grischpel closed 1 year ago

grischpel commented 1 year ago

(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

DanYouCan commented 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

ghost commented 1 year ago

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
ste101 commented 1 year ago

I change line 314 in AbstractMenuViewHelper.php to this

if (($page['active'] || $expandAll) && ($page['hasSubPages'] ?? '') && $level < $levels) {
fixpunkt-systeme commented 1 year ago

Even when the Configuration Presets "Live" is selected, the Log-file contains this Warning. Therefore this bug should be fixed.

NamelessCoder commented 1 year ago

Has been solved in dev-development since c78039646dc1dd43a4c070bb060a17c2102be777