What error is this??

Discussion in 'PHP' started by radhika.writer, Apr 29, 2010.

  1. #1
    Hi

    I tried opening my site and I got his below mentioned error, can any one tell what exactly is the issue? Till yesterday it was working perfectly fine.

    Please advice how to fix this issue??

    Thanks
     
    radhika.writer, Apr 29, 2010 IP
  2. bytes

    bytes Peon

    Messages:
    39
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    can you post here lines 580-600 of /home/healthon/public_html/LATEST-NEWSONLINE.COM/wp-content/themes/Svetlina/functions.php file?
     
    bytes, Apr 29, 2010 IP
  3. nabil_kadimi

    nabil_kadimi Well-Known Member

    Messages:
    1,065
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    195
    #3
    PHP is telling you that headers should be set before any output
     
    nabil_kadimi, Apr 29, 2010 IP
  4. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #4
    You - that is, your theme or a plugin - is outputting an HTML newline to the screen before altering the headers (usually for a redirect location).

    Server: Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8m DAV/2 mod_fcgid/2.3.5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
    X-Powered-By: PHP/5.2.13
    Transfer-Encoding: chunked
    Content-Type: text/html
    
    
    <br />
    Code (markup):
    See the last line. This is sometimes caused by a redirect plugin / mask external links etc. try changing your theme to see if it fixes the problem (so you know what is causing it).

    Failing that, You can also try disabling your plugins and see if it clears the problem, and then reactivate them one by one.

    To tell you the actual cause of the problem, you would need to paste in further code though this is likely a conflict between the theme and a plugin.
     
    lukeg32, Apr 29, 2010 IP
  5. radhika.writer

    radhika.writer Well-Known Member

    Messages:
    1,422
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    140
    #5
    This is the code

     
    radhika.writer, Apr 29, 2010 IP
  6. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #6
    problem here is headers must be placed on top of all HTML compatible characters, any spaces/characters above the will output this error.
     
    bartolay13, Apr 29, 2010 IP
  7. radhika.writer

    radhika.writer Well-Known Member

    Messages:
    1,422
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    140
    #7
    Well, what I am not able to understand is that when I slept last night it was working perfectly fine and now when I checked my site next morning it started showing me this error. What exactly messed up with the code?
     
    radhika.writer, Apr 29, 2010 IP
  8. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #8
    Please see my previous response on what you should do to locate the problem.... specifically, "this is likely a conflict between the theme and a plugin."

    It happens, im afraid :/
     
    lukeg32, Apr 29, 2010 IP
  9. radhika.writer

    radhika.writer Well-Known Member

    Messages:
    1,422
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    140
    #9
    I tried that and its not working, strange thing is that it started working 5 mins back without me doing anything and now again it showing me same error. Its all happening on its own.
     
    radhika.writer, Apr 29, 2010 IP
  10. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #10
    Which is why its almost certainly a plugin/theme issue. It happens all the time.
     
    lukeg32, Apr 29, 2010 IP
  11. radhika.writer

    radhika.writer Well-Known Member

    Messages:
    1,422
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    140
    #11
    So that means I should change the theme??
     
    radhika.writer, Apr 29, 2010 IP
  12. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #12
    No, because it may not be a theme problem.... You have something that is outputting a newline, and then something that is sending header data which is NOT valid, hence the error. This could be the theme..... it could be a plugin..... it could be a conflict between the two. [It could also be something else, but very unlikely].

    Finding what is causing it is easy enough as per my original post.
     
    lukeg32, Apr 29, 2010 IP
  13. MyVodaFone

    MyVodaFone Well-Known Member

    Messages:
    1,048
    Likes Received:
    42
    Best Answers:
    10
    Trophy Points:
    195
    #13
    Try to comment // out this line and let us know what happens ?

    /home/healthon/public_html/LATEST-NEWSONLINE.COM/wp-includes/pluggable.php on line 868
     
    MyVodaFone, Apr 29, 2010 IP
  14. radhika.writer

    radhika.writer Well-Known Member

    Messages:
    1,422
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    140
    #14
    Well it was theme issue, its working perfectly fine now. Thanks guys for your help and time.

    :)
     
    radhika.writer, Apr 29, 2010 IP