Issue Bug Closed

#97098Undefined array key warnings in HMENU & TMENU

André Buchmann 03/04/22, 07:55 updated 10/04/22, 14:17

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

Reviews 2