Support Call: 434
Subject join/verify.php
Status Closed
Assigned To Unassigned
Logged By FA Joshua Hawkins
Logged On Sep 28, 2011
Call Text [phpBB Debug] PHP Warning: in file /includes/session.php on line 1035: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/rebelsquadrons.org/httpdocs/header.php:23)
[phpBB Debug] PHP Warning: in file /includes/session.php on line 1035: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/rebelsquadrons.org/httpdocs/header.php:23)
[phpBB Debug] PHP Warning: in file /includes/session.php on line 1035: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/rebelsquadrons.org/httpdocs/header.php:23)


Thank you for completing the join process! You have been added to our roster database and may log in via the Main Login Page.

Use the following information to login:



-----------------------------------------------------

I've changed it to include_once but it didn't help. please note: THE CODE DOES WORKS!!! It just throws this error on the page. I dunno why. Any ideas?
Action History
Oct 19, 2011 Did we fix this Josh? Or was this the one thing we couldn't figure out? (ADM David "Heavy" Pasiechnyk)
Oct 19, 2011 Haven't a clue why this error gets thrown, chances are something needs to be changed from include to include_once but I don't know where. The file it references covers pretty much the entire forums. (ADM Joshua Hawkins)
Dec 28, 2011 It looks like the page is trying to do a header() or send a cookie after stuff has already been sent to the browser. It's probably a header("Location ..."); redirect. (RA Snappleguy)
Feb 28, 2012 Is there a way to suppress this error somehow? I don't think there's a way to fix this without major rewrite of some code.. (ADM Joshua Hawkins)
Jun 15, 2012 ok, now that i have some time. Here is the offending code for the includes/session.php:

function set_cookie($name, $cookiedata, $cookietime)

{

global $config;



$name_data = rawurlencode($config['cookie_name'] . '_' . $name) . '=' . rawurlencode($cookiedata);

$expire = gmdate('D, d-M-Y H:i:s \G\M\T', $cookietime);

$domain = (!$config['cookie_domain'] || $config['cookie_domain'] == 'localhost' || $config['cookie_domain'] == '127.0.0.1') ? '' : '; domain=' . $config['cookie_domain'];



header('Set-Cookie: ' . $name_data . (($cookietime) ? '; expires=' . $expire : '') . '; path=' . $config['cookie_path'] . $domain . ((!$config['cookie_secure']) ? '' : '; secure') . '; HttpOnly', false);

}

Now I just need to find where this is being called from so I can put an @ infront and suppress this error from displaying. (ADM Joshua Hawkins)
Aug 08, 2012 I have no idea what happened, but this seems to have fixed itself. Maybe the latest update to PHPBB fixed it? I dunno, it's gone and that's all that matters! YAY! I'll reopen if it comes back. (ADM Joshua Hawkins)