{"id":5544909,"date":"2014-12-04T14:45:55","date_gmt":"2014-12-04T14:45:55","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/problems-with-register_nav_menu\/"},"modified":"2016-08-22T13:12:59","modified_gmt":"2016-08-22T13:12:59","slug":"problems-with-register_nav_menu","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/problems-with-register_nav_menu\/","title":{"rendered":"problems with register_nav_menu"},"content":{"rendered":"<p>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:<\/p>\n<p>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<\/p>\n<p>Warning: Illegal offset type in \/home\/content\/15\/11729115\/html\/webi2000\/nonprofit\/wp-includes\/nav-menu.php on line 110<\/p>\n<p>Warning: Cannot modify header information &#8211; 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<\/p>\n<p>Warning: Cannot modify header information &#8211; 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<\/p>\n<p>and here is the pertinent code from my functions.php page:<br \/>\n&lt;?php register_nav_menu(<br \/>\n    array(<br \/>\n\t\t&#8216;primary&#8217; =&gt; &#8216;Primary Navigation&#8217;,<br \/>\n\t\t&#8216;footer_menu&#8217; =&gt; &#8216;Footer Menu&#8217;<br \/>\n        ));<br \/>\n?&gt;<\/p>\n<p>and the conflicting code from the nav-menu.php, a page I have never worked on:<br \/>\nfunction register_nav_menu( $location, $description ) {<br \/>\n\tregister_nav_menus( array( $location =&gt; $description ) );<br \/>\n}<br \/>\nI do not know what the last page is about it has no php delimiters (&lt;? ?&gt;) and I do not know what to make of it.<\/p>\n<p>I guess my php code is wrong in my functions.php but I can not figure out why.<\/p>\n<p>Does anyone have any ideas?<\/p>\n","protected":false},"template":"","class_list":["post-5544909","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5544909","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5544909\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5544909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}