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

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

ditto
getting the same thing with the latest dev release as well

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.

Scratch that - I was missing some files. Apologies.

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/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).

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.

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

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

So this module is not throwing these errors.

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

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

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

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

cleared all the caches and the error is gone ;)

Getting the same as #4 on 7.7

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

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

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

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

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.

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

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

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');
    $select->addTag('node_access');
    $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;
        }
      }
    }
  }
  _menu_tree_check_access($tree);
}

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.

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.

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

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

thanks
Tomas

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

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

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.