vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Error: Unable to add cookies, header already sent (https://vborg.vbsupport.ru/showthread.php?t=314573)

BlueCheri 09-29-2014 11:01 AM

Error: Unable to add cookies, header already sent
 
Getting following error, can someone please help me on that?

Quote:

Unable to add cookies, header already sent.
File: /home/-forum name-/public_html/dbtech/status/hooks/init_startup.php
Line: 33
Thanx in advance.

G!

Dave 09-29-2014 11:16 AM

You should contact the author of that status mod by dbtech.
It basically means that output is being sent before vBulletin can set cookies/headers, this must happen before any output is being sent to the client.

Lynne 09-29-2014 05:21 PM

Did you recently edit your config.php file? If so, did you make sure to use a plain text editor such as notepad++? If you didn't, you may have left a BOM, so I'd suggest redoing the config.php file with a plain text editor.

BlueCheri 10-03-2014 07:07 AM

Quote:

Originally Posted by Dave (Post 2516851)
You should contact the author of that status mod by dbtech.
It basically means that output is being sent before vBulletin can set cookies/headers, this must happen before any output is being sent to the client.

Thanx for reply.

Quote:

Originally Posted by Lynne (Post 2516912)
Did you recently edit your config.php file? If so, did you make sure to use a plain text editor such as notepad++? If you didn't, you may have left a BOM, so I'd suggest redoing the config.php file with a plain text editor.

Tried with Notepad++

Now getting following error, can you please help me on this?

Thanx in advance.

Quote:

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at ..../dbtech/status/hooks/init_startup.php:33) in ..../includes/facebook/facebook.php on line 49

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at ..../dbtech/status/hooks/init_startup.php:33) in


Lynne 10-03-2014 04:32 PM

So you created a new config.php file that you edited using notepad++ or you just edited the existing one? Make sure you save it without BOM. Also, are you running 4.2.2? If so, please add the following line to your config.php file under the <?php line:

PHP Code:

define('SKIP_DS_ERRORS'true); 


BlueCheri 10-04-2014 05:57 AM

Quote:

Originally Posted by Lynne (Post 2517556)
So you created a new config.php file that you edited using notepad++ or you just edited the existing one? Make sure you save it without BOM. Also, are you running 4.2.2? If so, please add the following line to your config.php file under the <?php line:

PHP Code:

define('SKIP_DS_ERRORS'true); 



Many thanx again, tried with your suggestions. Sorry some how it's not working :(

I am not getting what I am doing wrong?

Kindly help me.

Rgds,

G!

Lynne 10-04-2014 04:56 PM

Try disabling your modifications/plugins and see if you still have this problem.
Note: To temporarily disable the plugin system, edit includes/config.php and add this line right under <?php

PHP Code:

define('DISABLE_HOOKS'true); 


BlueCheri 10-04-2014 05:49 PM

Quote:

Originally Posted by Lynne (Post 2517674)
Try disabling your modifications/plugins and see if you still have this problem.
Note: To temporarily disable the plugin system, edit includes/config.php and add this line right under <?php

PHP Code:

define('DISABLE_HOOKS'true); 



Now it shows following error;

PHP Code:

Warningsession_start() [function.session-start]: Cannot send session cookie headers already sent by (output started at ..../vb/vb.php:300in ..../includes/facebook/facebook.php on line 49

Warning
session_start() [function.session-start]: Cannot send session cache limiter headers already sent (output started at ..../vb/vb.php:300in ..../includes/facebook/facebook.php on line 49 


Lynne 10-04-2014 08:01 PM

You shouldn't be getting that warning if you add the line from post 5 to your config.php file. Is that line still in there?

BlueCheri 10-05-2014 04:11 AM

Quote:

Originally Posted by Lynne (Post 2517684)
You shouldn't be getting that warning if you add the line from post 5 to your config.php file. Is that line still in there?

Unfortunately the error is still there :(

PHP Code:

Unable to add cookiesheader already sent.
File: /home/offwalk/public_html/dbtech/status/hooks/init_startup.php
Line
33 



All times are GMT. The time now is 11:56 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.01681 seconds
  • Memory Usage 1,753KB
  • 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
  • (6)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete