Project

General

Profile

Actions

Bug #99866

closed

Undefined array key "sectionIndex." in AbstractMenuContentObject.php

Added by Benjamin Robinson almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Start date:
2023-02-07
Due date:
% Done:

100%

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

Description

A TypoScript menu with the sectionIndex property
lib.nav = HMENU
lib.nav{
    entryLevel = 0
    1 = TMENU
    1{
        wrap = <ul>|</ul>
        expAll = 1
        NO.wrapItemAndSub = <li>|</li>
    }
    2<.1
    2.sectionIndex = 1
}
… generates the following 4 errors for each content element of TMENU "libnav.2":
  • Core: Error handler (FE): PHP Warning: Trying to access array offset on value of type null in /typo3_src-11.5.22/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php line 1814
  • Core: Error handler (FE): PHP Warning: Undefined array key "sectionIndex." in /typo3_src-11.5.22/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php line 1814
  • Core: Error handler (FE): PHP Warning: Trying to access array offset on value of type null in /typo3_src-11.5.22/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php line 1812
  • Core: Error handler (FE): PHP Warning: Undefined array key "sectionIndex." in /typo3_src-11.5.22/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php line 1812

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #94707: Undefined array key / Trying to access array offset on value of type null / PHP Version 8.0.8Closed2021-08-04

Actions
Related to TYPO3 Core - Bug #95563: Undefined key warnings in ContentObjectRenderer.phpClosed2021-10-11

Actions
Actions

Also available in: Atom PDF