Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Since upgrading to beta 6 (and Drupal 7.2) I am getting the following errors on some pages:
Notice: Undefined index: access in _menu_translate() (line 778 of /home/cpelham/public_html/dev.crsny.org/public/includes/menu.inc).
Notice: Undefined index: access in menu_local_tasks() (line 1892 of /home/cpelham/public_html/dev.crsny.org/public/includes/menu.inc).
Comments
Comment #1
Jean Gionet CreditAttribution: Jean Gionet commentedditto
getting the same thing with the latest dev release as well
Comment #2
dddbbb CreditAttribution: dddbbb commentedI'm getting the same thing when trying to navigate to Views generated RSS feeds on Drupal 7.2.
Comment #3
dddbbb CreditAttribution: dddbbb commentedScratch that - I was missing some files. Apologies.
Comment #4
bmateus CreditAttribution: bmateus commentedWhat files, if one can asK?
I'm becoming nuts on the same problem.
Also have:
Notice: Undefined index: access in _menu_tree_check_access() (line 1446 of /public_html/includes/menu.inc).
Notice: Undefined index: access in _menu_link_translate() (line 913 of /public_html/includes/menu.inc).
Notice: Undefined index: access in _menu_tree_check_access() (line 1446 of /public_html/includes/menu.inc).
Comment #5
dddbbb CreditAttribution: dddbbb commentedI can't say which files because I'm unsure as to which ones it was. My local devlopment version was working fine but my remote version was throwing the errors - I just re-synced the two and the remote version started to behave. Sorry I can't be more specific.
Comment #6
tobiasbsee http://drupal.org/node/1163492#comment-4533452
Comment #7
bmateus CreditAttribution: bmateus commentedThe funny part is that I don't even have this module installed.
So this module is not throwing these errors.
Comment #8
azote CreditAttribution: azote commentedI have to agree ... I don't have the module and I'm getting the exact error too ....
Comment #9
marco71 CreditAttribution: marco71 commentedMight be interesting to tell us which files you where missing.
If you fixed it now, and don't see the error anymore.
Comment #10
redrider CreditAttribution: redrider commentedsame errors - I just did the update this morning - I'm seriously considering taking my site back to Drupal 6
Comment #11
redrider CreditAttribution: redrider commentedif you just want to clear the errors, in the core modules, disable image, file and menu I'm not a developer and I know I can't repair this issue, so for me, just clearing the errors is good enough until the Drupal team can get it resolved
Comment #12
MrMaksimize CreditAttribution: MrMaksimize commentedcleared all the caches and the error is gone ;)
Comment #13
pixelsweatshop CreditAttribution: pixelsweatshop commentedGetting the same as #4 on 7.7
Comment #14
liupascal CreditAttribution: liupascal commentedSubscribing
Got this error even though i don't have i18n installed, never even enabled
Tried clear cache, even rebuilt registry
Comment #15
allenshorter CreditAttribution: allenshorter commentedCleared cache for my 7.7 upgrade and all the errors I was getting are gone now.
Comment #16
jagermonster CreditAttribution: jagermonster commentedconfirmed, clearing cache removes the errors. wonder if it does not have something to do with the Field translation module
Comment #17
shaisamuel CreditAttribution: shaisamuel commentedI have the same problem using drupal 7.7 and dev 7.x-1.x-dev version from 2011-Sep-26. I had the same problem when was using 7.x-1.0.
Notice: Undefined index: access in _menu_translate() (line 778 of /home1/myagelef/public_html/ecologicalintl/drupal/dev/includes/menu.inc).
Notice: Undefined index: access in menu_local_tasks() (line 1892 of /home1/myagelef/public_html/ecologicalintl/drupal/dev/includes/menu.inc).
I removed the module, clear the chach few times with no result.
Comment #18
Jose Reyero CreditAttribution: Jose Reyero commentedIt seems the original issue with i18n_menu was a cache issue. And for the comments here (#7, #17) this issue is caused by other module. So please find out which is the module before reopening the issue.
Comment #19
forsythes CreditAttribution: forsythes commentedI am experiencing this problem after creating a new Panel and assigning it to the Main menu in 7.9. I also do not have the Translate module enabled. I tried clearing the cache, but it didn't help.
Here are the specific errors without full paths:
Notice: Undefined index: access in _menu_translate() (line 778 of .../includes/menu.inc).
Notice: Undefined index: access in menu_local_tasks() (line 1946 of .../includes/menu.inc).
Comment #20
blogook CreditAttribution: blogook commentedI had the same error. Cleared cache and all is well :)
Comment #21
Keith Marran CreditAttribution: Keith Marran commentedI don't the Internationalization module either and clearing the cache did not help. I had to hack the core to get it to work. For some reason, the nid was not always found in $node_links. This is my revised menu_tree_check_access:
Comment #22
camdarley CreditAttribution: camdarley commentedThis is not related to Internationalization module... Like #7, #8, #14 I don't have i18n installed.
Comment #23
camdarley CreditAttribution: camdarley commented#994992: _menu_check_access() does not warn when the access callback does not exist fix the issue
Comment #24
mautumn CreditAttribution: mautumn commentedI too started to get these error messages coming from multiple sources when I migrated a site from Ubuntu 11.04 to 12.04 (quickstart VM -> drupalpro VM) and clearing all caches made the problem go away. Thanks to #20.
Comment #25
paulo_graca CreditAttribution: paulo_graca commentedClearing cache didn't fix my problem.
The problem it's in hook_menu() in one of the modules that's been used.
Comment #26
tomas.teicher CreditAttribution: tomas.teicher commentedI have the same problem. Clearing caches doesn't help. Did you solve problem? What error was in hook_menu?
thanks
Tomas
Comment #27
nessunluogo CreditAttribution: nessunluogo commentedI solved this problem disabling the Contextual links core module.
Hope this helps.
Comment #28
adarksun CreditAttribution: adarksun commented#27 also helps me to solve the problem / fix the errors
Comment #29
evilwire CreditAttribution: evilwire commentedThe problem was addressed in a different thread, where a patch was generated. For those of you who are still searching for the answer here, this is a summary of what was discovered in that thread:
- a distributed module is installed that calls hook_menu or hook_menu_alter and one of the registered paths was registered with an invalid 'access callback' function
- when that path is requested, the function _menu_check_access does not process the 'access' index of the menu item array; and the index is consequently not set.
- the menu item then gets into the gears of
_menu_translate
ormenu_local_task
, which attempts to access the menu item array's 'access' index. A feature of PHP (as it should be) is to raise an error when it attempts to read an unset index of an array; drupal then dsm that message for your viewing pleasureThe solution proposed by the patch in the previous fix is to change _menu_check_access and to set the 'access' index to false in the case that the 'access callback' function is not found, and log the error. You can safely patch up your drupal build with that solution.
I hope this will effectively knot off this thread.