Getting this menu error in watchdog.
call_user_func_array(): First argument is expected to be a valid callback, '_view_unpublished_node_access' was given in /FOLDER/includes/menu.inc on line 452.
function _menu_check_access(&$item, $map) {
// Determine access callback, which will decide whether or not the current
// user has access to this path.
$callback = empty($item['access_callback']) ? 0 : trim($item['access_callback']);
// Check for a TRUE or FALSE value.
if (is_numeric($callback)) {
$item['access'] = (bool)$callback;
}
else {
$arguments = menu_unserialize($item['access_arguments'], $map);
// As call_user_func_array is quite slow and user_access is a very common
// callback, it is worth making a special case for it.
if ($callback == 'user_access') {
$item['access'] = (count($arguments) == 1) ? user_access($arguments[0]) : user_access($arguments[0], $arguments[1]);
}
else {
$item['access'] = call_user_func_array($callback, $arguments); // LINE 452
}
}
}
Comments
Comment #1
doublejosh commentedBTW: That snippet is the function in question within includes/menu.inc
Comment #2
entendu commentedOld ticket, please re-open if this crops up again.
Comment #3
doublejosh commentedHaven't seen this issue in my watchdogs lately. Will keep an eye out.