warning: Missing argument 2 for phptemplate_menu_item_link() in XXX/html/sites/all/themes/litejazz/template.php on line 92.

Although I made some changes to template.php a few days ago, I was doing nothing with it today. Everything was going along fine... then I saved a configuration that threw this warning.

Can any Drupal hero help?

http://www.southernheritagesale.com

Comments

WorldFallz’s picture

It would help if you would post the function that contains the offending line from the template.php file.

tawebworks’s picture

function phptemplate_menu_item_link($item, $link_item) {
if ($item['path'] == '') {
$attributes['title'] = $link['description'];
return ''. $item['title'] .'';
}
else {
return l($item['title'], $link_item['path'], !empty($item['description']) ? array('title' => $item['description']) : array(), isset($item['query']) ? $item['query'] : NULL);
}
}

mm167’s picture

which version u are using?

for ver 5.x
_menu_item_link($item, $link_item)

for ver 6.x
_menu_item_link($item)

tawebworks’s picture

6.x.

...And that fixed it.

THANK YOU!!