Issue Bug Closed

#98681Undefined array key 1 in TextMenuContentObject

Chris Müller 10/21/22, 07:49 updated 02/08/23, 16:07

Description

Using this code:

lib.content-singlepage = COA
lib.content-singlepage {
    10 = HMENU
    10 {
        includeNotInMenu = 1
        special = directory
        1 = TMENU
        1 {
            expAll = 1
            noBlur = 1
            NO = 1
            NO {
                doNotLinkIt = 1
                doNotShowLink = 1
                stdWrap2 { 
                    cObject = COA # this makes some trouble tho
                    cObject {
                        20 =< page.10 
                    }
                }
                wrapItemAndSub = |
            }
        }
    }
}

throws the following error:

PHP Warning: Undefined array key 1 in /var/www/html/public/typo3/sysext/frontend/Classes/ContentObject/Menu/TextMenuContentObject.php line 144

Bug reported by Tyrone Rogers on Slack: https://typo3.slack.com/archives/C025BQLFA/p1666274266356589

Reviews 2

History 24

  1. Gerrit Code Review pushed patch set 1 for main to change 77564 status New Under Review 01/24/23, 13:44

  2. Gerrit Code Review pushed patch set 1 for 11.5 to change 77567 01/24/23, 14:27

  3. Benni Mack commented and changed status Under Review Resolved done 0 % 100 % 01/24/23, 14:30

    Applied in changeset commit:d1fa4dd09e47d52dd59770c4dfa813bf3ad7b03e.

  4. Benni Mack changed status Resolved Closed 02/08/23, 16:07