Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
2 registered (driv, Outdoorking), 40 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 11/22/06
Posts: 163
Top Posters (30 Days)
Ruben 51
DennyP 24
Gizmo 24
Dunny 15
SteveS 14
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 2 1 2 >
Topic Options
#20633 - 09/20/02 05:05 AM Intermittent Header Error
Anonymous
Unregistered

Whenever you first enter our site (www.thepresidian.net) the following error appears at the top of the page:

</font><blockquote><font size="1" face="">quote:</font><hr /><font size="" face=""> Warning: Cannot add header information - headers already sent by (output started at /home/sites/site27/web/ubbthreads/templates/default/ubbt_header.tmpl:18) in /home/sites/site27/web/ubbthreads/ubbt.inc.php on line 1723 </font><hr /></blockquote><font size="" face="">Help anyone?!?!
Top
#20634 - 09/20/02 12:40 PM Re: Intermittent Header Error
Anonymous
Unregistered

Check the bottom of the ubbt.inc.php file - use a text editor like UltraEdit32 or anything that will let you see line numbers.

If there are lines or carriage returns AFTER the closing ?> tag remove them and reupload the file - do the same for the template file listed in the error message.

Regards,

Brett Harris
Infopop Corporation
Top
#20635 - 09/21/02 05:58 PM Re: Intermittent Header Error
Anonymous
Unregistered

Interesting Brett, gotta remember that one. I see blank lines quite often at the bottom of the scripts and usually remove them, but I thought it was just being neat <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

---
- Allen <img src="http://www.stand318.com/ubb/graemlins/wavey.gif" alt=" - " />
- Stand318
- UBB™ Developers Network | UBBThreads™ Developers Network
Top
#20636 - 09/21/02 07:08 PM Re: Intermittent Header Error
Anonymous
Unregistered

Blank lines are not always a problem.

I think that the issue here is that if there are characters outside the <?php ?> in a file that's included, then those characters will be output when the file is included. PHP automatically sends the HTTP headers, if necessary, when outputting data. If the script explicitly sends HTTP headers after the file is included, then the result is the "headers already sent" warning.
Top
#20637 - 09/21/02 07:45 PM Re: Intermittent Header Error
Anonymous
Unregistered

You are correct Dave - but we are doing one step at a time. I believe that this is prudent at this time so that we troubleshoot our own scripts before we ask the host if they are sending headers.

Regards,

Brett Harris
Infopop Corporation
Top
#20638 - 09/22/02 03:46 AM Re: Intermittent Header Error
Anonymous
Unregistered

Hi Brett - thanks once again for your help. I did as instructed (I removed the carriage returns that were at the end of ubbt.inc.php, ubbt_header.tmpl, and ubbthreads.tmpl) but it did not make any difference.

The actual code on line 1723 of ubbt.inc.php is:

</font><blockquote><font size="1" face="">quote:</font><hr /><font size="" face="">
1722 else {
1723 setcookie("w3t_mysess","$newsessionid","0","{$config['cookiepath']}");
1724 }
</font><hr /></blockquote><font size="" face="">Some more detailed notes on this problem:

> it only occurs when you click the picture on the index page to enter the boards, after that when you return to the forum index it is no longer there.
> you have to be logged in, anonymous users never see this error.

Any clearer?!?!

~tg
Top
#20639 - 09/22/02 10:10 AM Re: Intermittent Header Error
Anonymous
Unregistered

What browser and version are you using?

Are you using cookies or sessions right now?

Regards,

Brett Harris
Infopop Corporation
Top
#20640 - 09/23/02 04:10 AM Re: Intermittent Header Error
Anonymous
Unregistered

1. IE6
2. Cookies
Top
#20641 - 09/23/02 07:40 AM Re: Intermittent Header Error
Anonymous
Unregistered

Brett, I was just responding to Allen's comment about blank lines. I didn't mean to confuse the issue. <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />
Top
#20642 - 09/23/02 11:29 AM Re: Intermittent Header Error
Anonymous
Unregistered

Dave - no problem - sorry <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

Gent - check your cookie path in the control panel and see if it's set for the whole site or just the board.

Regards,

Brett Harris
Infopop Corporation
Top
Page 1 of 2 1 2 >



Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Due Date Calculator-Calculate When Your Baby is Due
by StewartMyduedate
Today at 12:54 AM
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
Forum Stats
10491 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image