Closed (outdated)
Project:
Drupal core
Version:
main
Component:
menu_ui.module
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Jul 2020 at 09:34 UTC
Updated:
24 Jan 2026 at 23:48 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mpp commentedComment #4
mpp commentedComment #5
johnwebdev commentedWhat are the steps to reproduce this on a clean install?
Comment #6
mpp commentedHi John, thank you for your comment.
Not really sure what caused this but I got this notice when working with og_menu.
Does it really matter how this is reproduced? Arrays don't have interfaces so it seems like a bad practice to just go ahead without checking a specific index is available. A lot of php logs I've seen are filled with countless of these "no index defined" notices. Imo, either we use an interface or we test if an index exists (can be done with either isset or empty, depending on the need).
Comment #11
smustgrave commentedThis issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.
Think the fix should be to find out what is causing this to be passed. Fix the route cause vs symptom.
Either way will need a test case.
Comment #12
priya.chat commentedHi all, I have add not empty check that will handle the empty case and also the undefined case. Kindly review.
Comment #13
smustgrave commentedStill needs tests.
Comment #15
fernly commentedUpdated latest patch to make it apply to Drupal 11.2.3.
Added no tests in this update.
Comment #17
smustgrave commentedThis will need steps to reproduce.
Comment #19
smustgrave commentedClosing out. If still a bug in D11 please re-open updating the summary with steps to reproduce.
Thanks all