Bug #97098
closedUndefined array key warnings in HMENU & TMENU
100%
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
Updated by Gerrit Code Review about 2 years ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73805
Updated by Gerrit Code Review about 2 years ago
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73777
Updated by Gerrit Code Review about 2 years ago
Patch set 2 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73777
Updated by Anonymous about 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset f1dd13d558b2fd8da8d3b055953caadfa4398da0.