Page 1 of 1

Site monitor script error

Posted: Sat Aug 18, 2007 9:36 am
by augirl
I have installed this script but first time try to login
and get this error.
Would some be able to tell me how to fix it please.


Warning: Cannot modify header information - headers already sent by (output started at /home/aussiesh/public_html/sitemonitor/host.config.inc.php:34) in /home/aussiesh/public_html/sitemonitor/login.php on line 29

Warning: Cannot modify header information - headers already sent by (output started at /home/aussiesh/public_html/sitemonitor/host.config.inc.php:34) in /home/aussiesh/public_html/sitemonitor/login.php on line 30

Warning: Cannot modify header information - headers already sent by (output started at /home/aussiesh/public_html/sitemonitor/host.config.inc.php:34) in /home/aussiesh/public_html/sitemonitor/login.php on line 32

Thank you :roll:

Re: Site monitor script error

Posted: Sat Aug 18, 2007 9:42 am
by superdezign
augirl wrote:I have installed this script but first time try to login
and get this error.
Would some be able to tell me how to fix it please.
You have 'installed' a script? How so? Into your own?


The problem is line 34 of host.config.inc.php. You shouldn't make output in included files, as it could cause unexpected results if you aren't careful.

Re: Site monitor script error

Posted: Sat Aug 18, 2007 10:12 am
by augirl
superdezign wrote:
augirl wrote:I have installed this script but first time try to login
and get this error.
Would some be able to tell me how to fix it please.
You have 'installed' a script? How so? Into your own?


The problem is line 34 of host.config.inc.php. You shouldn't make output in included files, as it could cause unexpected results if you aren't careful.
Thank for answer but that file only has 31 lines and the includes file is called functions.inc.php is
this where it could be if so could I send you code for you to have a look.

Thank you :roll:

Re: Site monitor script error

Posted: Sat Aug 18, 2007 10:16 am
by superdezign
augirl wrote:Thank for answer but that file only has 31 lines and the includes file is called functions.inc.php is
this where it could be if so could I send you code for you to have a look.
No, I don't need you to send me your code. If the file is 31 lines long, then you probably have whitespace at the end. In files that are nothing but PHP code, it is recommended by the standards to omit the closing '?>' tag to avoid that problem. Just remove the closing tag and it should be fine.

Edit: functions.inc.php? You're looking at the wrong file. I told you which one the error said the problem is in.

Posted: Sat Aug 18, 2007 10:29 am
by nickvd
We should keep some sort of counter to determine exactly how many times per week this question is asked without searching first.

Re Error

Posted: Sat Aug 18, 2007 4:20 pm
by augirl
Hi Superdesign

Thank you very much for you help ir is now functioning well

Take Care :roll: