Project

General

Profile

Actions

Bug #98681

closed

Undefined array key 1 in TextMenuContentObject

Added by Chris Müller about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2022-10-21
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

Actions #1

Updated by Gerrit Code Review almost 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/+/77564

Actions #2

Updated by Gerrit Code Review almost 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/+/77567

Actions #3

Updated by Benni Mack almost 2 years ago

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

Updated by Benni Mack almost 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF