View Full Version : "Unable to add cookies, header already sent."
Awjvail
03-09-2008, 04:20 PM
At random times (i've only seen it on showthread.php) I've been getting strange errors. They go away when you refresh the page and everything seems to function normally.
This error:
Unable to add cookies, header already sent.
File:
Line: 0
Anybody know how I can fix this? It's quite strange :S
snakes1100
03-09-2008, 04:50 PM
Not really, you dont supply any needed info for us to view or use your site to see whats on it.
Ask your host to check the error logs for the server.
Awjvail
03-09-2008, 04:54 PM
Not really, you dont supply any needed info for us to view or use your site to see whats on it.
Ask your host to check the error logs for the server.
Giving you the link to my private board really wouldn't help you very much unless you wanted to sit there for about an hour clicking links to try to get the error :|
snakes1100
03-09-2008, 05:01 PM
Well, then i guess you can site here and let ppl guess at your issue.
Seeing as you never provide info for us to help you, i doubt you will get much help.
Awjvail
03-09-2008, 05:05 PM
You last posted on one of my threads 6 days ago. One would think that by now you would be off the rag, but I guess not :(
I highly doubt me posting the link to my private forum will help solve the problem. The source code is no different than any other forum page and you can't view anything that would cause it by simply viewing the website.
snakes1100
03-09-2008, 05:09 PM
Thats very mature for someone that asks for help to fix their site issues.
Awjvail
03-09-2008, 05:11 PM
Continuously asking for my website URL when I have cited my forum as being private (private.. meaning.. you can't see it) and being quite snooty about it is also very mature.
Lynne
03-09-2008, 05:15 PM
Tons of threads in google about this issue: http://www.google.com/search?q=Unable+to+add+cookies%2C+header+already+s ent.&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
Awjvail
03-09-2008, 05:17 PM
Yeah, I've check Google. Unfortunately, most of them seem to be quite ancient and none seem to apply to my specific problem (mine seems to point to functions.php as the source of the issue, however at a glance in functions.php I can't seem to find any issues with it and it hasn't been modified).
Lynne
03-09-2008, 06:31 PM
Yeah, I've check Google. Unfortunately, most of them seem to be quite ancient and none seem to apply to my specific problem (mine seems to point to functions.php as the source of the issue, however at a glance in functions.php I can't seem to find any issues with it and it hasn't been modified).
And how do you know this? You have posted no information whatsoever that would lead us to think that this is a problem with functions.php.
Awjvail
03-09-2008, 08:02 PM
And how do you know this? You have posted no information whatsoever that would lead us to think that this is a problem with functions.php.
There was another error that showed up in the Admin CP few mins before I posted that, looked just like the one I posted in original post, but "file" wasnt blank - it said functions.php
Lynne
03-09-2008, 08:18 PM
There was another error that showed up in the Admin CP few mins before I posted that, looked just like the one I posted in original post, but "file" wasnt blank - it said functions.php
.... and perhaps a LINE number?
Awjvail, I'm wondering if you could look at this thread from another point of view. Look at it through the eyes of someone who is willing to help, and then look at the posts you've made and see if you have enough information to help the person at all. The more information you give, the more likely you are to get some help. The less information, the less likely.
Awjvail
03-09-2008, 08:20 PM
.... and perhaps a LINE number?
Awjvail, I'm wondering if you could look at this thread from another point of view. Look at it through the eyes of someone who is willing to help, and then look at the posts you've made and see if you have enough information to help the person at all. The more information you give, the more likely you are to get some help. The less information, the less likely.
I don't recall seeing any line numbers. Other than "0".
--------------- Added 1205168932 at 1205168932 ---------------
Ok I just got another one, this one includes line number.
Warning: Cannot modify header information - headers already sent in /includes/functions.php on line 2801
Awjvail
03-12-2008, 12:14 PM
Bumping this up
as was merged into last post, I just got another error:
Warning: Cannot modify header information - headers already sent in /includes/functions.php on line 2801
line 2801 is
header("Location: $url", 0, 302);
Lynne
03-12-2008, 03:43 PM
Ask your host to check the error logs for the server.
Have you? These would really help.
Bumping this up
as was merged into last post, I just got another error:
line 2801 is
header("Location: $url", 0, 302);
Have you tried replacing the functions.php page with a default one downloaded from vbulletin? Have you tried disabling your hacks to see if the errors still occur? Did you just add a hack prior to this starting - if so which one? And recheck the installation guide for it.
Awjvail
03-13-2008, 02:56 AM
the only hack i've installed for a while is vBAdvanced.. but it doesn't affect any of the pages (such as showthread.php) that the errors are showing up on.. does it?
i'll disable hacks at the beginning of next week as this week (due to spring break) our traffic is at a peak and I'm afraid disabling hacks will put a damper on things.
I'll contact my host re: the error logs
Anybody have any idea what line 2801 does?
Dismounted
03-13-2008, 05:45 AM
You probably have a plugin installed that sends output to the browser before vBulletin can finish it's business.
Awjvail
03-14-2008, 12:58 AM
How would I check for this?
Go through all of the plugins?
another recent change i've made was I've modified the header template.. but I only rearranged the layout of it and didn't mess with any of that stuff.. :S
Awjvail
03-15-2008, 04:29 AM
I think I've fixed it.
I had one of my plugins at the wrong hook location.
I haven't gotten the error since so.. hopefully this does the trick.
Lynne
03-15-2008, 04:59 PM
Hey Awjvail, if it was a modification you downloaded from here, you might want to post about this in the modification thread to let people know about it.
I'm glad you got this worked out! {{{crosses fingers}}}
thecool444
03-16-2008, 08:12 PM
I get this error.
Unable to add cookies, header already sent.
File: /home/mmorpglo/public_html/Forum/includes/functions.php
Line: 5299
Anyone know how to fix it
snakes1100
03-16-2008, 08:17 PM
I get this error.
Unable to add cookies, header already sent.
File: /home/mmorpglo/public_html/Forum/includes/functions.php
Line: 5299
Anyone know how to fix it
Please start your own thread when asking for help.
Disable all your hacks globally and see if that resolves the issue.
thecool444
03-16-2008, 08:20 PM
I did start my own thread.
snakes1100
03-16-2008, 08:24 PM
Then why are you posting in this thread?
Edit config.php in the includes folder and disable the plugin system.
Add this to the second line in the file and resave it to the server:
define('DISABLE_HOOKS', true);
acegames
03-17-2008, 03:35 PM
I had this error yesterday and fixed it by using tools.php :
Update the forum and usergroup cache
Update the options cache from the setting table
Update the bitfields cache from the xml/bitfields
Then finally :
In the AdminCP, go to 'Usergroup' -> 'Usergroup Manager' and click 'Go' to edit any of the usergroups (saving is not necessary, going to the page is all that's required).
s0lidgr0und
06-02-2009, 11:53 AM
I had a string of garbage added to my function.php file. I didn't put it there.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.