vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   "Unable to add cookies, header already sent." (https://vborg.vbsupport.ru/showthread.php?t=172544)

Awjvail 03-09-2008 04:20 PM

"Unable to add cookies, header already sent."
 
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:
Quote:

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

Quote:

Originally Posted by snakes1100 (Post 1460851)
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=Unabl...ient=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

Quote:

Originally Posted by Awjvail (Post 1460869)
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

Quote:

Originally Posted by Lynne (Post 1460920)
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

Quote:

Originally Posted by Awjvail (Post 1460983)
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

Quote:

Originally Posted by Lynne (Post 1460996)
.... 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 [DATE]1205168932[/DATE] at [TIME]1205168932[/TIME] ---------------

Ok I just got another one, this one includes line number.

Quote:

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:

Quote:

Warning: Cannot modify header information - headers already sent in /includes/functions.php on line 2801
line 2801 is

PHP Code:

header("Location: $url"0302); 


Lynne 03-12-2008 03:43 PM

Quote:

Originally Posted by snakes1100 (Post 1460851)
Ask your host to check the error logs for the server.

Have you? These would really help.

Quote:

Originally Posted by Awjvail (Post 1462947)
Bumping this up

as was merged into last post, I just got another error:



line 2801 is

PHP Code:

header("Location: $url"0302); 


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

Quote:

Originally Posted by thecool444 (Post 1466433)
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.


All times are GMT. The time now is 04:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03221 seconds
  • Memory Usage 1,775KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (26)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete