Hi I'm getting this error message:
Parse error: syntax error, unexpected T_STRING in /home/....../includes/menu.inc on line 592

These are the lines mentioned:

{
if ($load_functions = $item['load_functions']) {
// If someone calls this function twice, then unserialize will fail.
if (!is_array($load_functions)) {
$load_functions = unserialize($load_functions);
}
$path_map = $map;
foreach ($load_functions as $index => $function) {
if ($function) {
$value = isset($path_map[$index]) ? $path_map[$index] : '';
if (is_array($function)) {
// Set up arguments for the load function. These were pulled from
// 'load arguments' in the hook_menu() entry, but they need
// some processing. In this case the $function is the key to the
// load_function array, and the value is the list of arguments.
list($function, $args) = each($function);
$load_functions[$index] = $function;

// Some arguments are placeholders for dynamic items to process.
foreach ($args as $i => $arg) {
if ($arg === '%index') {
// Pass on argument index to the load function, so multiple
// occurrences of the same placeholder can be identified.
$args[$i] = $index;
}
if ($arg === '%map') {
// Pass on menu map by reference. The accepting function must
// also declare this as a reference if it wants to modify
// the map.
$args[$i] = &$map;
}
if (is_int($arg)) {
$args[$i] = isset($path_map[$arg]) ? $path_map[$arg] : '';
}
}
array_unshift($args, $value);
$return = call_user_func_array($function, $args);
}
else allback returned an error or there is no callback, trigger 404.>> THIS IS LINE 592<<
if ($return === FALSE)
{
$item['access'] = FALSE;
$map = FALSE;
return FALSE;
}
$map[$index] = $return;
}
}
$item['load_functions'] = $load_functions;
}
return TRUE;

Can anyone help?

Thank you very much

Comments

VM’s picture

missed the Drupal 8.x tag

nevets’s picture

Drupal 8 is still in development, you should file an issue in the projects issue queue. On the surface it looks like a bad edit (the 'allback returned an error or there is no callback, trigger 404.' should probably be a comment)