Actions
Bug #99866
closedUndefined array key "sectionIndex." in AbstractMenuContentObject.php
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
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
Updated by Benjamin Robinson almost 2 years ago
- Related to Bug #94707: Undefined array key / Trying to access array offset on value of type null / PHP Version 8.0.8 added
Updated by Benjamin Robinson almost 2 years ago
- Related to Bug #95563: Undefined key warnings in ContentObjectRenderer.php added
Updated by Benjamin Robinson almost 2 years ago
Temporary workaround:
If the property sectionIndex.type is additionally specified (even if empty) the errors disappear:
lib.nav = HMENU lib.nav{ entryLevel = 0 1 = TMENU 1{ wrap = <ul>|</ul> expAll = 1 NO.wrapItemAndSub = <li>|</li> } 2<.1 2.sectionIndex = 1 2.sectionIndex.type = }
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/+/77779
Updated by Thomas Hohn almost 2 years ago
- Target version set to Candidate for patchlevel
Updated by Gerrit Code Review almost 2 years ago
Patch set 2 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/+/77779
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/+/77840
Updated by Thomas Hohn almost 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset dcf6922597e9338ca3e6476bae55d9ac89983457.
Actions