Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 09-29-2014, 11:01 AM
BlueCheri's Avatar
BlueCheri BlueCheri is offline
 
Join Date: Jul 2009
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 09-29-2014, 11:16 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
BlueCheri
  #3  
Old 09-29-2014, 05:21 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
BlueCheri
  #4  
Old 10-03-2014, 07:07 AM
BlueCheri's Avatar
BlueCheri BlueCheri is offline
 
Join Date: Jul 2009
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
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 View Post
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
Reply With Quote
  #5  
Old 10-03-2014, 04:32 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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); 
Reply With Quote
  #6  
Old 10-04-2014, 05:57 AM
BlueCheri's Avatar
BlueCheri BlueCheri is offline
 
Join Date: Jul 2009
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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!
Reply With Quote
  #7  
Old 10-04-2014, 04:56 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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); 
Reply With Quote
Благодарность от:
BlueCheri
  #8  
Old 10-04-2014, 05:49 PM
BlueCheri's Avatar
BlueCheri BlueCheri is offline
 
Join Date: Jul 2009
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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 
Reply With Quote
  #9  
Old 10-04-2014, 08:01 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #10  
Old 10-05-2014, 04:11 AM
BlueCheri's Avatar
BlueCheri BlueCheri is offline
 
Join Date: Jul 2009
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:43 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04612 seconds
  • Memory Usage 2,296KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_php
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (3)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete