Support » Fixing WordPress » Error with WP 3.0 and themes

  • Daveyg0517


    Can someone please help. I just installed WordPress 3.0 I had a previous version from back in 2007 and had never upgraded.

    I had to create a new database, do a new set-up.

    Here is the error I keep receiving

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/s/c/o/scotlandorbust/html/wp-admin/nav-menus.php:453) in /home/content/s/c/o/scotlandorbust/html/wp-includes/functions.php on line 830

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/s/c/o/scotlandorbust/html/wp-admin/nav-menus.php:453) in /home/content/s/c/o/scotlandorbust/html/wp-includes/functions.php on line 831

    Please help ASAP

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator James Huff


    You have unexpected whitespace (either a space or an entire line) on line 453 of the /wp-admin/nav-menus.php file. See this guide for more info.

    Alternatively, replacing the file with one from a fresh download may resolve the issue.



    Thanks Mac, i tried the suggestions but nothinga working.

    Here are code lins 450 – 454

    `return $items;

    $defaults = array( ‘order’ => ‘ASC’, ‘orderby’ => ‘menu_order’, ‘post_type’ => ‘nav_menu_item’,
    ‘post_status’ => ‘publish’, ‘output’ => ARRAY_A, ‘output_key’ => ‘menu_order’, ‘nopaging’ => true,
    ‘update_post_term_cache’ => false );`




    oooops. Wrong code.

    here are lines 452 – 456

    if ( ! current_theme_supports( 'menus' ) && ! wp_get_nav_menus() )
    	echo '<div id="message" class="updated"><p>' . __('The current theme does not natively support menus, but you can use the “Custom Menu” widget to add any menus you create here to the theme’s sidebar.') . '</p></div>';
    $help =  '<p>' . __('This feature is new in version 3.0; to use a custom menu in place of your theme’s default menus, support for this feature must be registered in the theme’s functions.php file. If your theme does not support the custom menus feature yet (the new default theme, Twenty Ten, does), you can learn about adding support yourself by following the below link.') . '</p>';
    $help .= '<p>' . __('You can create custom menus for your site. These menus may contain links to pages, categories, custom links or other content types (use the Screen Options tab to decide which ones to show on the screen). You can specify a different navigation label for a menu item as well as other attributes. You can create multiple menus. If your theme includes more than one menu, you can choose which custom menu to associate with each. You can also use custom menus in conjunction with the Custom Menus widget.') . '</p>';
    Moderator James Huff


    Download WordPress again and delete then replace your copy of the /wp-admin/ directory with a fresh copy from the download.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error with WP 3.0 and themes’ is closed to new replies.