Title: problems with register_nav_menu
Last modified: August 22, 2016

---

# problems with register_nav_menu

 *  [timparlin](https://wordpress.org/support/users/timparlin/)
 * (@timparlin)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/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?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Asta – Just Good Themes](https://wordpress.org/support/users/astab/)
 * (@astab)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/problems-with-register_nav_menu/#post-5545194)
 * Hi,
 * `register_nav_menu()` registers a single navigation menu. You have to use `register_nav_menus()`
   if you want to register several navigation menus at once.
 *  Thread Starter [timparlin](https://wordpress.org/support/users/timparlin/)
 * (@timparlin)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/problems-with-register_nav_menu/#post-5545235)
 * Thanks Asta.
 * That helped a lot.
 * Tim

Viewing 2 replies - 1 through 2 (of 2 total)

 The topic ‘problems with register_nav_menu’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [timparlin](https://wordpress.org/support/users/timparlin/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/problems-with-register_nav_menu/#post-5545235)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
