Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
menu system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2008 at 13:08 UTC
Updated:
20 Mar 2020 at 16:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pwolanin commentedThis (untested) patch is against D6, but should apply to D7 too.
Comment #2
dries commentedCommitted to CVS HEAD.
Comment #3
pwolanin commentedso I guess this is RTBC for 6.x too?
Comment #4
pwolanin commentedComment #5
gábor hojtsyCommitted to Drupal 6, thanks!
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #7
danillonunes commentedAs I have PHP E_ALL errors enabled, this check keep showing me boring "Notice: Undefined index: access" messages on 7.x-dev. Cannot reproduce on 6.x-dev, but maybe is because there's no menu item without any "access" key. Anyway, I made a patch for both 7.x and 6.x.
Edit: Oh, sorry for a lot of patches attached... It's a bug with Filefield + Opera :-(.
Comment #8
bfroehle commentedFor clarity, shouldn't that be
if( (A && B) || (C && D) !== FALSE )not
if ( A && B || (C && D) !== FALSE )Powered by Dreditor.
Comment #9
danillonunes commentedI just figure out that I had an active module whose files has been deleted, so that's why "access" key doesn't exists. I don't know if Drupal normally try to deal with these edge cases - maybe deleting files without uninstalling a module can give a lot of other troubles too because is an non recommended pratice. Anyway, I rerolled the first patch with #8 suggestion.
Comment #10
pwolanin commentedComment #11
kscheirer#9: 266596_remove_notice_messages-2-7.x.patch queued for re-testing.
Comment #13
mgiffordComment #14
rahul.shindeComment #15
rahul.shinde@mgifford, @kscheirer, @danillonunes I suppose the required changes are in the
DefaultMenuLinkTreeManipulatorsclass. Please help confirm this.Comment #16
piyuesh23 commentedComment #17
piyuesh23 commentedComment #18
pwolanin commentedUse !empty() don't use array_key_exists()
Comment #19
pwolanin commentedComment #20
pwolanin commentedI also suspect this is no longer relevant for Drupal 8.0.x.
From \Drupal\Core\Menu\DefaultMenuLinkTreeManipulators::checkAccess()
Comment #21
gábor hojtsy