problems with register_nav_menu
-
I have been working on a customized version of the skeleton theme and once I uploaded the site to godaddy I received several error messages. I have tried to fix them but now I have lost navigation in my site. Here are the messages:
Warning: Missing argument 2 for register_nav_menu(), called in /home/content/15/11729115/html/webi2000/nonprofit/wp-content/themes/library_theme/functions.php on line 5 and defined in /home/content/15/11729115/html/webi2000/nonprofit/wp-includes/nav-menu.php on line 109
Warning: Illegal offset type in /home/content/15/11729115/html/webi2000/nonprofit/wp-includes/nav-menu.php on line 110
Warning: Cannot modify header information – headers already sent by (output started at /home/content/15/11729115/html/webi2000/nonprofit/wp-includes/nav-menu.php:109) in /home/content/15/11729115/html/webi2000/nonprofit/wp-includes/option.php on line 750
Warning: Cannot modify header information – headers already sent by (output started at /home/content/15/11729115/html/webi2000/nonprofit/wp-includes/nav-menu.php:109) in /home/content/15/11729115/html/webi2000/nonprofit/wp-includes/option.php on line 751
and here is the pertinent code from my functions.php page:
<?php register_nav_menu(
array(
‘primary’ => ‘Primary Navigation’,
‘footer_menu’ => ‘Footer Menu’
));
?>and the conflicting code from the nav-menu.php, a page I have never worked on:
function register_nav_menu( $location, $description ) {
register_nav_menus( array( $location => $description ) );
}
I do not know what the last page is about it has no php delimiters (<? ?>) and I do not know what to make of it.I guess my php code is wrong in my functions.php but I can not figure out why.
Does anyone have any ideas?
The topic ‘problems with register_nav_menu’ is closed to new replies.