Page 1 of 1

Cannot modify header information

Posted: Thu Nov 30, 2006 7:11 pm
by roxane
Hi, I hope someone can help me....

I downloaded Serendipity 1.0.3a and ran the index.php file.

I get the error
Warning: Cannot modify header information - headers already sent by (output started at C:\VIRTUAL_WEB_SERVER\serendipity\index.php:20) in C:\VIRTUAL_WEB_SERVER\serendipity\serendipity_config.inc.php on line 138

Now, I know that usually this is caused by having white/blank spaces before <?php but the probleem is I haven't edited any of the files yet???

Could there be another reason for the error?

If it makes a difference, I am running PHP 5.0.4 and IIS and use Windows XP

Re: Cannot modify header information

Posted: Thu Nov 30, 2006 10:09 pm
by garvinhicking
Hi!

What is at line 20 in your index.php?

Best regards,
GArvin

Posted: Fri Dec 01, 2006 9:18 am
by roxane
HI

Heres what I see from line 19 to 22

19 - header('HTTP/1.0 200');
20 - if ($serendipity['expose_s9y']) {
21 - header('X-Blog: Serendipity'); // Used for installer detection
22 - }

Posted: Fri Dec 01, 2006 10:02 am
by garvinhicking
Hi!

Hm, in those lines no output to the browser is made; that's strange! Maybe you can remove those lines here:

20 - if ($serendipity['expose_s9y']) {
21 - header('X-Blog: Serendipity'); // Used for installer detection
22 - }

Those are not relevant.

Regards,
Garvin