[resolved] "Cannot modify header information" - with 'www' only (4 posts)

  1. erin138439
    Posted 5 years ago #

    I am getting the error:

    Warning: Cannot modify header information - headers already sent by (output started at /home/greenbi5/public_html/wordpress/wp-content/themes/gbp/functions.php:20) in /home/greenbi5/public_html/wordpress/wp-includes/pluggable.php on line 868

    only when putting "www" in the URL.

    this: http://greenbirdproductions.com/wordpress/home works just fine.
    this: http://www.greenbirdproductions.com/wordpress/home has the error.

    It's my first manual install of WordPress, so I'm assuming it has something to do with that. My knowledge of php is minimal.

    I do not have any extra spaces before <?php or after ?> in the wp-config file - or in the two files it mentions in the error. There doesn't seem to be any extra spaces in line 20 of functions.php.

    (And, though this doesn't matter, it hasn't been styled for IE yet, so it probably looks a little goofy if you view it in IE.)

    Any help would be greatly appreciated. Thank you!!

  2. The problem is actually excess white space on line 20 of functions.php . See this for more info:


  3. erin138439
    Posted 5 years ago #

    Annnd I guess all day of staring at a screen just started to make me go crazy:

    I had tried deleting extra space on line 20 of functions.php ... but the wrong functions.php. I checked the one in the main WordPress folder under wp-includes, NOT the one in my theme directory. I forgot I made edits to it earlier in the day.

    Thanks for the help, macmanx, and making me check over my work again.

  4. You're welcome!

Topic Closed

This topic has been closed to new replies.

About this Topic