Project

General

Profile

Actions

Bug #97098

closed

Undefined array key warnings in HMENU & TMENU

Added by André Buchmann about 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
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 #1

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

Actions #2

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

Actions #3

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

Actions #4

Updated by Anonymous about 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF