• Resolved Scott G.

    (@sgodar)


    Warning: Cannot modify header information – headers already sent by (output started at /home/sgodar/public_html/alivewithout5.com/wp-content/themes/cleanr/functions.php:56) in /home/sgodar/public_html/alivewithout5.com/wp-includes/pluggable.php on line 866

    Function.php (theme) line 56:

    <?php register_nav_menus( ); ?>

    Pluggable.php line 866:

    header(“Location: $location”, true, $status);

    Header.php (theme):

    <div class=”nav”>
    <div>
    <?php wp_nav_menu( array(‘fallback_cb’ => ‘black_with_orange_page_menu’, ‘depth’ => ‘3’, ‘theme_location’ => ‘primary’, ‘link_before’ => ”, ‘link_after’ => ”, ‘container’ => false) ); ?>
    </div>
    </div>

    Can anyone want can tell he what the hell is going on?!? Everytime I add a Page/Post or make a Menu change I get the above error:

    Warning: Cannot modify header information – headers already sent by (output started at /home/sgodar/public_html/alivewithout5.com/wp-content/themes/cleanr/functions.php:56) in /home/sgodar/public_html/alivewithout5.com/wp-includes/pluggable.php on line 866

    I’m at a loss — Any help would be TREMENdously appreciated! The site is AliveWithout5.com

    Thanks,

    Scott G.
    `

Viewing 5 replies - 1 through 5 (of 5 total)
  • headers already sent usually means that there is an unexpected space in the code. The space is usually at the top. There are lots of posts about this in the forums.

    Thread Starter Scott G.

    (@sgodar)

    Thank you for the responses… I looked at the links you provided (didn’t even think to search for “hearders already sent” for some reason…).

    I’m just not having any luck! It’s obviously something in functions.php:

    Warning: Cannot modify header information – headers already sent by (output started at /home/sgodar/public_html/alivewithout5.com/wp-content/themes/cleanr/functions.php:53) in /home/sgodar/public_html/alivewithout5.com/wp-includes/pluggable.php on line 866

    Warning: Cannot modify header information – headers already sent by (output started at /home/sgodar/public_html/alivewithout5.com/wp-content/themes/cleanr/functions.php:53) in /home/sgodar/public_html/alivewithout5.com/wp-includes/pluggable.php on line 866

    Here’s what I’ve got at the line 53:
    <?php
    register_nav_menu(‘5nav’, ‘5nav’);
    ?>

    In my header.php I’ve got:

    <div class=”nav”>
    <div>
    <?php wp_nav_menu( array(‘fallback_cb’ => ‘black_with_orange_page_menu’, ‘depth’ => ‘3’, ‘theme_location’ => ‘primary’, ‘link_before’ => ”, ‘link_after’ => ”, ‘container’ => false) ); ?>
    <div class=”clear”><!– –></div>
    </div>
    </div>

    The menu displays and works properly… Everytime I add/edit/activate a new post, page, plugin I get the error… It’s extremely annoying! I’m not a guru just an enthusiast… This stupid theme which I fell in love with didn’t have custom menus incorporated and now I’m just trying to get it to work ??

    Thanks again guys…

    Scott G.

    Now try reading the Codex section at the link I posted above so you can analyse the error message correctly.

    Thread Starter Scott G.

    (@sgodar)

    @esmi

    AHhhh! How stupid! I was reading the directions incorrectly! Trying to eliminate white space in vice versa… That’s crazy… There was ONE extra space in pluggable.php

    That’s weird I never had that issue or “warning” before ever until i added the code for custom menu.

    THANKS!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom Menu (Theme not Compatible) Added Now Have an ERROR!’ is closed to new replies.