Quote:
Originally Posted by NittoMOD
Im getting this error -
Code:
Unable to add cookies, header already sent.
File: /home/content/v/e/n/mydir/html/mywebsite.com/staging/index.php
Line: 2
Community
My file paths are correct and there is no white space. Any idea's?
|
Quote:
Originally Posted by NittoMOD
Any help with this?
|
Quote:
Originally Posted by David Regimbal
I too have the same issue as you =[
My Fix:
well, I'm using this in the root of the site for a custom html page. I feel like a dumbass because i looked at the source and it had "<html>" twice. So my "custom.php" file that I made all I included in it was:
PHP Code:
<?php
$curdir = getcwd ();
chdir('/home/bstackn/public_html/vbtest');
require_once('global.php');
chdir ($curdir);
?>
<?php
require_once('login_inc.php');
?>
That seemed to work for me and fixed my issue. Hope this helps someone else.
|
From the included instructions file:
If you get a message saying headers already sent or cookies already sent, chances are that there is something, even just a space before the 4 lines of code in part 1. Edit this and ensure that there are no spaces before it.