Hi,
I get the follow error at the top of the Serendipity start page:
Notice: Undefined variable: serendipity in c:\inetpub\wwwroot\serendipity\index.php on line 20
and at the bottom I get:
Warning: Cannot modify header information - headers already sent by (output started at c:\inetpub\wwwroot\serendipity\index.php:20) in c:\inetpub\wwwroot\serendipity\index.php on line 27
Yes, I am using IIS :'( on a w2k3 server, with MySQL5 and PHP 4.1
Can anyone help me with this? I have many other open source apps that run just fine.
Thanks!!
errors on start page for Serendipity
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: errors on start page for Serendipity
Hi!
Which serendipity version are you trying?
You should upgrade your PHP. 4.1 is both old and very insecure.
Best regards,
Garvin
Which serendipity version are you trying?
You should upgrade your PHP. 4.1 is both old and very insecure.
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Correction, I am actually running php4.4.2
The version of Serendipity is 1.0.3a
When I also click on open login screen I get this:
Notice: Undefined variable: serendipity in c:\inetpub\wwwroot\serendipity\index.php on line 20
Warning: Cannot modify header information - headers already sent by (output started at c:\inetpub\wwwroot\serendipity\index.php:20) in c:\inetpub\wwwroot\serendipity\index.php on line 27
Warning: Cannot modify header information - headers already sent by (output started at c:\inetpub\wwwroot\serendipity\index.php:20) in c:\inetpub\wwwroot\serendipity\index.php on line 320
The version of Serendipity is 1.0.3a
When I also click on open login screen I get this:
Notice: Undefined variable: serendipity in c:\inetpub\wwwroot\serendipity\index.php on line 20
Warning: Cannot modify header information - headers already sent by (output started at c:\inetpub\wwwroot\serendipity\index.php:20) in c:\inetpub\wwwroot\serendipity\index.php on line 27
Warning: Cannot modify header information - headers already sent by (output started at c:\inetpub\wwwroot\serendipity\index.php:20) in c:\inetpub\wwwroot\serendipity\index.php on line 320
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Ah! Dang! Now I see it. Your PHP has the verbose error controlling set to on, and is emitting a "Notice" where no real error is happening, and thus preventing some output.
There are two ways to fix this.
1. The proper way, which I have also just committed to serendipity. Open your index.php and just remove those lines:
2. Another way would be to edit your php.ini file, set the "error_reporting = E_ALL & ~E_NOTICE" flag and restart your webserver.
HTH,
Garvin
Ah! Dang! Now I see it. Your PHP has the verbose error controlling set to on, and is emitting a "Notice" where no real error is happening, and thus preventing some output.
There are two ways to fix this.
1. The proper way, which I have also just committed to serendipity. Open your index.php and just remove those lines:
Code: Select all
if ($serendipity['expose_s9y']) {
header('X-Blog: Serendipity'); // Used for installer detection
}
HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Thanks, I have done that but now these errors appear:
Warning: Cannot modify header information - headers already sent by (output started at c:\inetpub\wwwroot\serendipity\index.php:1) in c:\inetpub\wwwroot\serendipity\index.php on line 19
Is there something that I am not doing?
So far all my other opensource apps seem to work fine with php and IIS.
Thanks again for you support!!
Warning: Cannot modify header information - headers already sent by (output started at c:\inetpub\wwwroot\serendipity\index.php:1) in c:\inetpub\wwwroot\serendipity\index.php on line 19
Is there something that I am not doing?
So far all my other opensource apps seem to work fine with php and IIS.
Thanks again for you support!!
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Did you check if you maybe accidentally introduced an empty line at the top of your file in index.php? Before the "<?php" you are not allowed to have any characters! Especially no UTf-8 BOM sequences...so make sure your editor does not insert anything before <?php in index.php.
Best regards,
Garvin
Did you check if you maybe accidentally introduced an empty line at the top of your file in index.php? Before the "<?php" you are not allowed to have any characters! Especially no UTf-8 BOM sequences...so make sure your editor does not insert anything before <?php in index.php.
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/