Previous Thread
Next Thread
Print Thread
Rate Thread
#236741 02/17/2003 2:09 PM
Joined: Oct 2002
Posts: 24
Junior Member
Junior Member
Offline
Joined: Oct 2002
Posts: 24
Any ideas why i get this?

Code
 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 

Sponsored Links
bud #236742 02/17/2003 2:16 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
This could be caused by spaces after the the closing of the php script: ?>


Have a look at this link:

https://ubbdev.com/threads/php/...=collapsed&sb=5&o=31&fpart=1





Last edited by JustDave; 02/17/2003 2:18 PM.
sjsaunders #236743 02/17/2003 2:37 PM
Joined: Oct 2002
Posts: 24
Junior Member
Junior Member
Offline
Joined: Oct 2002
Posts: 24
I tried that, both index.php and ubbt.inc.php

nothign works

bud #236744 02/17/2003 2:40 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
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?

bud #236745 02/17/2003 2:46 PM
Joined: Oct 2002
Posts: 24
Junior Member
Junior Member
Offline
Joined: Oct 2002
Posts: 24
this is line 1707

setcookie("{$config['cookieprefix']}w3t_mysess","$newsessionid","0","{$config['cookiepath']}");

Sponsored Links
bud #236746 02/17/2003 2:50 PM
Joined: Oct 2002
Posts: 24
Junior Member
Junior Member
Offline
Joined: Oct 2002
Posts: 24
it just started yesterday...no one touched a thing

using JCT templates

bud #236747 02/17/2003 2:54 PM
Joined: Oct 2002
Posts: 24
Junior Member
Junior Member
Offline
Joined: Oct 2002
Posts: 24
now i get this error, differnt index:3 and line number

Code
<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

bud #236748 02/17/2003 3:11 PM
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.

bud #236749 02/17/2003 3:14 PM
Joined: Jan 2003
Posts: 141
Journeyman
Journeyman
Offline
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.
#236750 02/17/2003 3:22 PM
Joined: Oct 2002
Posts: 24
Junior Member
Junior Member
Offline
Joined: Oct 2002
Posts: 24
It only appears on the index page, using IIP. doesnt appear on the forums pages at all...


Sponsored Links
bud #236751 02/17/2003 4:14 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
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.

sf49rminer #236752 02/17/2003 6:37 PM
Joined: Jan 2003
Posts: 141
Journeyman
Journeyman
Offline
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.

#236753 02/17/2003 6:40 PM
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.

Daine #236754 02/17/2003 7:28 PM
Joined: Jan 2003
Posts: 141
Journeyman
Journeyman
Offline
Joined: Jan 2003
Posts: 141
Thanks

#236755 02/18/2003 9:40 AM
Joined: Oct 2002
Posts: 24
Junior Member
Junior Member
Offline
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 :.

bud #236756 02/18/2003 10:02 AM
Joined: Oct 2002
Posts: 24
Junior Member
Junior Member
Offline
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...

bud #236757 02/18/2003 10:06 AM
Joined: Oct 2002
Posts: 24
Junior Member
Junior Member
Offline
Joined: Oct 2002
Posts: 24
Again, i put an echo statement in, and the page fails on that line.

Code
 // ###################################################################### <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 />      }

bud #236758 02/18/2003 4:36 PM
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?


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)