|
Joined: Oct 2002
Posts: 24
Junior Member
|
Junior Member
Joined: Oct 2002
Posts: 24 |
Any ideas why i get this? Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site15/fst/var/www/html/index.php:2) in /home/virtual/site15/fst/var/www/html/ubbthreads/ubbt.inc.php on line 1707<br /><br />Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site15/fst/var/www/html/index.php:2) in /home/virtual/site15/fst/var/www/html/ubbthreads/ubbt.inc.php on line 1707
|
|
|
|
Joined: Oct 2002
Posts: 24
Junior Member
|
Junior Member
Joined: Oct 2002
Posts: 24 |
I tried that, both index.php and ubbt.inc.php
nothign works
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
Any custom templates in use? Check them as well for the extra spaces. Has the error always been there or did it start after a specific modification was added?
|
|
|
|
Joined: Oct 2002
Posts: 24
Junior Member
|
Junior Member
Joined: Oct 2002
Posts: 24 |
this is line 1707
setcookie("{$config['cookieprefix']}w3t_mysess","$newsessionid","0","{$config['cookiepath']}");
|
|
|
|
Joined: Oct 2002
Posts: 24
Junior Member
|
Junior Member
Joined: Oct 2002
Posts: 24 |
it just started yesterday...no one touched a thing
using JCT templates
|
|
|
|
Joined: Oct 2002
Posts: 24
Junior Member
|
Junior Member
Joined: Oct 2002
Posts: 24 |
now i get this error, differnt index:3 and line number <br />Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site15/fst/var/www/html/index.php:3) in /home/virtual/site15/fst/var/www/html/ubbthreads/ubbt.inc.php on line 3412<br /><br />Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site15/fst/var/www/html/index.php:3) in /home/virtual/site15/fst/var/www/html/ubbthreads/ubbt.inc.php on line 3412
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Try manually deleteing your cookies. Sometimes that can cause that. If that's not the problem.. then there might be something wrong with JC mod. You'd need to check with him for support. But the cookies might fix it. JustDave's cookie utility (in the beta mods forum) is a good way to make sure you expire them all. 
|
|
|
|
Joined: Jan 2003
Posts: 141
Journeyman
|
Journeyman
Joined: Jan 2003
Posts: 141 |
I installed the compact posting mod and have been getting that error also but only when I reply to some pm's. Not everyone that I reply to gives it but maybe 1/2 of them do. No one else has complained about it but no one gets the number of pm's that I do either. It does send the reply but it gives me a white page with black letters stating about the same thing. I assume it has something to do with the mod that I did since the errors started about the same time. Would there be any relationship to the two things or is it more than likely coincidental? Ya know I thought about this after I made this post and mine gave the meesage and stated the error in the sendmessage.php if I remember correctly. Is it a coincidence that it happened immediately after the compact posting mod?
Last edited by dman; 02/17/2003 3:37 PM.
|
|
|
|
Joined: Oct 2002
Posts: 24
Junior Member
|
Junior Member
Joined: Oct 2002
Posts: 24 |
It only appears on the index page, using IIP. doesnt appear on the forums pages at all...
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
With two threads with very similar problems I would suspect JC Templates Try replacing templates with original ones and if the error disappears. 
|
|
|
|
Joined: Jan 2003
Posts: 141
Journeyman
|
Journeyman
Joined: Jan 2003
Posts: 141 |
LOL Call me stupid but what's a JC template? I can replace the templates no problems, I just want to file the knowlege away in my pea brain. Bear in mind, I'm trying to learn.
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
JC Templates are a third party template from the ubbdesign.com website. To narrow down the problem it's best to get as close to "out of the box" as you can, then pinpoint the issue. 
|
|
|
|
Joined: Jan 2003
Posts: 141
Journeyman
|
Journeyman
Joined: Jan 2003
Posts: 141 |
|
|
|
|
Joined: Oct 2002
Posts: 24
Junior Member
|
Junior Member
Joined: Oct 2002
Posts: 24 |
i dont see how it is JCT though...its not on the Forums, its ONLY on the IIP index page.
.: IIP 5.3 by David Lozier ©2002 :.
|
|
|
|
Joined: Oct 2002
Posts: 24
Junior Member
|
Junior Member
Joined: Oct 2002
Posts: 24 |
I tried the cookie utility. which works GREAT BTW. but the issue only seems to be with IIP, and going to the index page when already logged in from an old cookie....if you login fresh, nothing, if you view the page as guest, nothing...
|
|
|
|
Joined: Oct 2002
Posts: 24
Junior Member
|
Junior Member
Joined: Oct 2002
Posts: 24 |
Again, i put an echo statement in, and the page fails on that line. // ###################################################################### <br /> // AUTHENTICATE FUNCTION<br /> // Authenticate the user<br /> // ######################################################################<br /> function authenticate($Query="") {<br /><br /> global $dbh, $HTTP_COOKIE_VARS, $config, ${$config['cookieprefix']."w3t_key"}, $config,${$config['cookieprefix']."w3t_mysess"}, ${$config['cookieprefix']."w3t_myid"};<br /><br /><br /> // -----------------------------------------------------------------<br /> // We are automatically adding StyleSheet, Status, Privates and<br /> // FrontPage and Number to each SQL call because this information is needed by<br /> // every script that makes a call to authenticate<br /> if ($Query != "*") {<br /> if ($Query) { $Query .=","; }<br /> $Query .= "U_Username,U_Password,U_SessionId, U_StyleSheet, U_Status, U_Privates, U_FrontPage, U_Number";<br /> }<br /> $Uid = addslashes(${$config['cookieprefix']."w3t_myid"});<br /><br /> $query = "SELECT $Query FROM {$config['tbprefix']}Users WHERE U_Number = '$Uid'";<br /> $sth = $dbh -> do_query($query);<br /> $thisuser = $dbh -> fetch_array($sth);<br /> $dbh -> finish_sth($query);<br /> if ( ($thisuser['U_SessionId']) && ($thisuser['U_SessionId'] == ${$config['cookieprefix']."w3t_mysess"}) ) {<br /> return $thisuser;<br /> } elseif (${$config['cookieprefix']."w3t_key"} == md5("{$thisuser['U_Number']}{$thisuser['U_Password']}")) {<br /> srand((double)microtime()*1000000);<br /> $newsessionid = md5(rand(0,32767));<br /> $newsessionid_q = addslashes($newsessionid);<br /> $query = "<br /> UPDATE {$config['tbprefix']}Users<br /> SET U_SessionId = '$newsessionid_q'<br /> WHERE U_Number = $Uid<br /> ";<br /> $dbh -> do_query($query);<br /> if ($config['tracking'] == "sessions") {<br /> session_register("{$config['cookieprefix']}w3t_mysess");<br /> ${$config['cookieprefix']."w3t_mysess"} = $newsessionid;<br /> }<br /> else {<br /> //ECHO TEST<br /> echo"this is line 1707, set cookie";<br /> setcookie("{$config['cookieprefix']}w3t_mysess","$newsessionid","0","{$config['cookiepath']}");<br /> }<br /> return $thisuser;<br /> }
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Do you have your cookies set site wide?
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,932
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|