![]() |
Does anyone know why it gives me this error right above my news?
Code:
Warning: Cannot add header information - headers already sent by (output started at /www/egamers/index.php:14) in global.php on line 755 Could anyone help me? I've tried e-mailing AC-3, but I didn't get a reply, so I'm going to try asking here, to see if anyone else could help. |
Hmm, someone must know? Please help.. would be very grateful. :(
|
I am getting the same errors
The lines of code it messes up are setcookie("bblastvisit",$bblastactivity,mktime(0,0 ,0,0,0,2020),$cookiepath); and setcookie("bblastactivity",time(),mktime(0,0,0,0,0 ,2020),$cookiepath); Here's a cut of that whole area of code if(isset($isnews)) { if ($bbuserid==0) { $bbpassword=""; if (isset($bblastvisit)!=0 and $bblastvisit!=0) { $bblastvisit=$bblastvisit; if (isset($bblastactivity)==0 or $bblastactivity==0) { $bblastactivity=time(); } if (time()-$bblastactivity>$cookietimeout) { setcookie("bblastvisit",$bblastactivity,mktime(0,0 ,0,0,0,2020),$cookiepath); $bblastvisit=$bblastactivity; } } else { setcookie("bblastvisit",time(),mktime(0,0,0,0,0,20 20),$cookiepath); $bblastvisit=time(); } setcookie("bblastactivity",time(),mktime(0,0,0,0,0 ,2020),$cookiepath); $lastvisitdate=date($dateformat,$bblastvisit+(($ti meoffset)*3600))." ".date($timeformat,$bblastvisit+(($timeoffset)*360 0)); } } If someone is able to help I would appreciate it. |
Anyone else that is using this, I ended up hacking the news.php to become my index page.
But I am having a weird issue with it somehow double loading the index page. |
You can't set or change headers or cookies after any content whatsoever is sent to the browser. This can be as small as a single space above your opening PHP tag. Without looking at your entire code, I couldn't tell you what is exactly wrong but it appears to be that you are trying to set the cookies after you display the screen.
Here is the code I use for the weblog system and it works just fine. Code:
<?php |
All times are GMT. The time now is 10:52 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|