PDA

View Full Version : Strange error on index page...


jdmuniverse
06-09-2003, 08:53 PM
It says this on my index page...

Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site30/fst/var/www/html/index.php:6) in /home/virtual/site30/fst/var/www/html/forums/admin/functions.php on line 1614

This happened when I changed from an HTML index page to myvBindex as my index page. The funny thing is it doesn't do it ALL the time.

Any help, ideas??

Thanks in advance!

assassingod
06-10-2003, 06:04 AM
This error occurs when you post a text before you should. In vb this usually indicates you added a code to your global.php and it's sending a text to the user although it should not. Even if you accidently send a space char (which wouldnt be shown in the browser), you'll get the error. So if you check according to this information you might fix it by yourself. Make sure it's not 'echo'ing something in global.php..

jdmuniverse
06-10-2003, 07:10 AM
What do you mean by posting a text before I should? This is happening on myvBindex page AND on my main forums page. I don't understand what you mean by posting a text before I should? What should I look for and in which file? Thanks for your help :)

filburt1
06-10-2003, 12:10 PM
It will only occur if:
1. You have extra characters, including whitespace, before or after the <? and ?> (respectively)
or
2. You use echo, print_r, print, etc. if vB sends HTTP headers like for cookies, redirects, etc.

jdmuniverse
06-10-2003, 06:12 PM
Thank you very much.... the problem was that I had put some HTML before the <? for my Meta Tags, Key words etc....

I took it out and problem solved.

Where could I put keywords etc?

Thanks so much for all the help!

filburt1
06-10-2003, 06:33 PM
Always put HTML thatyou'll display in the templates.