Actions
Bug #97098
closedUndefined array key warnings in HMENU & TMENU
Start date:
2022-03-04
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception
PHP Warning: Undefined array key "isSpacer" in /var/www/html/typo3/sysext/frontend/Classes/ContentObject/Menu/TextMenuContentObject.php line 79
Setup for testing:
LocalConfiguration:
displayErrors = 1
exceptionalErrors = 12290
Setup a rootpage and add the following Typoscript. Try to load the root page in the FE. No subpages needed.
TMENU error:
lib.pageBreadcrumb = COA lib.pageBreadcrumb.100 = HMENU lib.pageBreadcrumb.100 { special = rootline special.range = 0|-0 1 = TMENU 1 { minItems = 2 wrap = <nav class="page__breadcrumb"><div class="breadcrumb__inner" ><ul class="breadcrumb__list" >|</ul></div></nav> NO { wrapItemAndSub = <li class="breadcrumb__item first">|</li>|*|<li class="breadcrumb__item">|</li>|*|<li class="breadcrumb__item last">|</li> stdWrap.replacement < lib.softhyphen.replacement ATagParams = class="breadcrumb__link" } } } page = PAGE page.10 < lib.pageBreadcrumb page.config.contentObjectExceptionHandler = 0
HMENU Error
lib.pageBreadcrumb = COA lib.pageBreadcrumb.100 = HMENU lib.pageBreadcrumb.100 { special = rootline special.range = 0|-0 } page = PAGE page.10 < lib.pageBreadcrumb page.config.contentObjectExceptionHandler = 0
Actions