Wordpress Header error on www.

Discussion in 'WordPress' started by pipes, May 2, 2008.

  1. #1
    Hello i ve just installed wordpress 2.5.1 and a theme that ive created, it shows fine at http://--site.com/ but not at http://www.--site.com/ im getting the error below:

    Warning: Cannot modify header information - headers already sent by (output started at /home/quantic/public_html/websitename/wp-content/themes/themename/functions.php:1) in /home/quantic/public_html/themename/wp-includes/pluggable.php on line 694

    The functions file looks like:

    <?php
    if ( function_exists('register_sidebar') )
        register_sidebar();
    ?>
    Code (markup):
    I cant see anything in that file, so wondering what it is i should do in pluggable.php if thats neccessary?

    Added text: Ive just changed something but need some confirmation please, if i have 2 sidebars, called rsidebar, lsidebar, then they both need to be added into the function code above, is that correct? basically to widgetise both sidebars.

    How should the above function code look for both sidebars?

    Also when installing wordpress does it matter if i install it without www in the url, because currently when i type in http://www.--site.com/ it goes back to http://--site.com/ should i have installed it with www showing?
     
    pipes, May 2, 2008 IP
  2. microbrain

    microbrain Banned

    Messages:
    1,079
    Likes Received:
    100
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Did you use auto blog installer ?
    if this is the case then simply go to the wp-admin section and add www. string to your blog , the site is opening fine with me .Blog is fine with and without www.
     
    microbrain, May 2, 2008 IP
  3. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #3
    Hi microbrain, apologies, i forgot to post back here and mention that i got it sorted, i realised earlier today what you just mentioned there regarding adding www and did that and its all fine now. :)

    I better edit my above post i put in sitename not realising thats actually owned by someone. :eek: i was only using that as an example.
     
    pipes, May 2, 2008 IP
  4. microbrain

    microbrain Banned

    Messages:
    1,079
    Likes Received:
    100
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Its good to see your problem sorted , I just leafed through what you wrote actually , Sorry for that !
     
    microbrain, May 3, 2008 IP