Full http header displayed directly above SSI in HTML pages

Discussion in 'Apache' started by hans, Oct 23, 2009.

  1. #1
    apache 2.2
    php5.2
    Linux (opensuse 11.0)
    all above working sinnce 1 year perfectly

    now as of today:

    My adsense are since years original G code inserted at pages via SSI. The original adsense javascript code is in plain text files - then inserted via SSI - since 3 years no problems what so ever with exact same method and setup!

    since today I noticed that directly ABOVE each SSI the full header appears
    like


    HTTP/1.1 200 OK
    Date: Fri, 23 Oct 2009 09:05:19 GMT
    Server: God is Love
    Last-Modified: Wed, 30 Jan 2008 20:16:15 GMT
    ETag: "a7bf6-89b-444f63691a1c0"
    Accept-Ranges: bytes
    Content-Length: 2203
    Connection: close
    Content-Type: text/plain; charset=utf-8

    unformatted - without line break.

    on PHP created pages all appears normal - i.e. on my gallery2 pages all SSI is inserted via SMARTY template-SSI modules and displayed correctly

    another SSI incident - RSS with zfeeder - either appears or remains empty. w/o a.m. headers displayed.

    The complete configuration of server and all other parts are the same since years

    the only possible change might be a security update of the PHP5 modules several days back.

    the error appears to be browser independent and worst even - i found some of my errors displayed in Google cached SE result pages - the oldest about 1 week back.( may be the time of the PHP security update )

    the error does NOT always occur but on about 50% of the page loads - if a page is reloaded then often the http header disappears and a clean page is displayed.

    my apache error_log show NO errors related to above
    error occurs on firefox, konqueror, opera and seamonkey alike


    anyone experienced in solving / finding original cause of problem ??

    any help to track problem-source also appreciated
     
    hans, Oct 23, 2009 IP
  2. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #2
    Since no one to help - I did some intense research and google for a day or so and finally solved the problem of displayed http headers in HTML pages as well as some other included() issues that occurred since last php5 security update.
    A detailed solution is here HTTP/1.1 200 OK headers displayed in HTML pages for all others having similar problems now or after a future update of php5.
     
    hans, Oct 27, 2009 IP