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/
Notice: Undefined index: access in menu_local_tasks() (line 1892 of /home/cpelham/public_html/


Jean Gionet’s picture

Version: 7.x-1.0-beta6 » 7.x-1.x-dev

getting the same thing with the latest dev release as well

danbohea’s picture

Category: bug » support
Priority: Major » Normal
Status: Closed (cannot reproduce) » Active

I'm getting the same thing when trying to navigate to Views generated RSS feeds on Drupal 7.2.

danbohea’s picture

Scratch that - I was missing some files. Apologies.

bmateus’s picture

Version: 7.x-1.x-dev » master

What 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/
Notice: Undefined index: access in _menu_link_translate() (line 913 of /public_html/includes/
Notice: Undefined index: access in _menu_tree_check_access() (line 1446 of /public_html/includes/

danbohea’s picture

I 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.

tobiasb’s picture

Version: master » 7.x-1.x-dev
Status: Active » Closed (duplicate)
bmateus’s picture

The funny part is that I don't even have this module installed.

So this module is not throwing these errors.

azote’s picture

I have to agree ... I don't have the module and I'm getting the exact error too ....

marco71’s picture

Might be interesting to tell us which files you where missing.
If you fixed it now, and don't see the error anymore.

redrider’s picture

same errors - I just did the update this morning - I'm seriously considering taking my site back to Drupal 6

redrider’s picture

if 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

MrMaksimize’s picture

cleared all the caches and the error is gone ;)

nicoz’s picture

Getting the same as #4 on 7.7

liupascal’s picture

Got this error even though i don't have i18n installed, never even enabled
Tried clear cache, even rebuilt registry

allenshorter’s picture

Cleared cache for my 7.7 upgrade and all the errors I was getting are gone now.

jagermonster’s picture

confirmed, clearing cache removes the errors. wonder if it does not have something to do with the Field translation module

shaisamuel’s picture

Category: support » bug
Priority: Normal » Major
Status: Closed (duplicate) » Active

I 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/
Notice: Undefined index: access in menu_local_tasks() (line 1892 of /home1/myagelef/public_html/ecologicalintl/drupal/dev/includes/

I removed the module, clear the chach few times with no result.

Jose Reyero’s picture

Status: Active » Closed (cannot reproduce)

It 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.

forsythes’s picture

I 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/
Notice: Undefined index: access in menu_local_tasks() (line 1946 of .../includes/

blogook’s picture

I had the same error. Cleared cache and all is well :)

Keith Marran’s picture

I 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:

function menu_tree_check_access(&$tree, $node_links = array()) {
  if ($node_links) {
    $nids = array_keys($node_links);
    $select = db_select('node', 'n');
    $select->addField('n', 'nid');
    $select->condition('n.status', 1);
    $select->condition('n.nid', $nids, 'IN');
    $nids = $select->execute()->fetchCol();
    foreach ($nids as $nid) {
      if (array_key_exists ($nid , $node_links)) {
        foreach ($node_links[$nid] as $mlid => $link) {
          $node_links[$nid][$mlid]['access'] = TRUE;

camdarley’s picture

Project: Internationalization » Drupal core
Version: 7.x-1.x-dev » 7.x-dev
Component: Menus » menu system
Category: support » bug
Priority: Normal » Major

This is not related to Internationalization module... Like #7, #8, #14 I don't have i18n installed.

camdarley’s picture

GlossyIbis’s picture

I 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.

paulo_graca’s picture

Clearing cache didn't fix my problem.
The problem it's in hook_menu() in one of the modules that's been used.

tomas.teicher’s picture

I have the same problem. Clearing caches doesn't help. Did you solve problem? What error was in hook_menu?


nessunluogo’s picture

I solved this problem disabling the Contextual links core module.
Hope this helps.

adarksun’s picture

#27 also helps me to solve the problem / fix the errors

evilwire’s picture

The 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 or menu_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 pleasure

The 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.