Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-07-2010, 07:58 AM
Snakehill Snakehill is offline
 
Join Date: Feb 2010
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Costum page error

Whenever someone is not logged in/registered to the forums there is an "Unable to add cookies, header already sent." error on the costum page.

I just did exactly what was told in the first section of https://vborg.vbsupport.ru/showthread.php?t=98009 and I run 3.8.4 patch 2 with PHP 4.4.7 (but I expect it would be pretty much the same as with that version as I couldn't find any updates on it).

If anyone could help me, an even more appreciated fix would be that the people in question gets redirected to the log-in page whenever they are not logged in.

Thanks a lot in advance!
Reply With Quote
  #2  
Old 02-09-2010, 10:40 AM
Snakehill Snakehill is offline
 
Join Date: Feb 2010
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone please?
It's the very only bug I have to deal with at the moment but it's not quite a nice one.

Thanks.
Reply With Quote
  #3  
Old 02-09-2010, 10:45 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To troubleshoot this, please remove any hacks and disable your plugins, then see if you still have this problem.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

If so, reupload all the original vB non-image files (except install.php). Make sure you upload these in ASCII format and overwrite the ones on the server.

If your problem still exists, please create a new Style with no Parent set. Now browse the forum using this new style, do you still have the same problems? If you are troubleshooting login or guest issues, you will need to set this style as board default in the vBulletin Options.
Reply With Quote
  #4  
Old 02-09-2010, 02:20 PM
Snakehill Snakehill is offline
 
Join Date: Feb 2010
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a lot for your help but none of it worked.

"Unable to add cookies, header already sent.
File: /home/vhosts/magiciansthegathering.com/httpdocs/forums/chat.php
Line: 1"

I did exactly what was told in the thread.

Isn't there another way to add costum pages which will definitely work and will be accessible for everyone? It's just that the template must be similar to the rest (and changes along with the rest if I would edit it). The only difference is the content within.

If it would be possible to have a guest be redirected to the logged in system as well it would be the best!

Thanks.
Reply With Quote
  #5  
Old 02-10-2010, 12:53 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you have done all i said, then you can not get that error message.

chat.php is not even a default vBulletin file so you still have modifications active.
Reply With Quote
  #6  
Old 02-10-2010, 04:04 PM
Snakehill Snakehill is offline
 
Join Date: Feb 2010
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The file doesn't contain any modifications on its own and I have tried it out with an emptied file as well (template only), still resulting into that error. The original file only contains an iFrame to a chat which is located somewhere else so that can't be the problem either.

How come registered forumers can actually enter it without any problems, yet guests get that error message while there are no permissions set at all?
Reply With Quote
  #7  
Old 02-17-2010, 06:08 PM
Snakehill Snakehill is offline
 
Join Date: Feb 2010
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I FINALLY figured it all out.

The only problem was the BOM which Notepad added to the PHP. I used Ultra Edit to save the exact same file without the BOM ('UTF-8 NO BOM' is this case, but UTF-16 NO BOM worked as well) and it worked all perfectly.

ASCI/ASCII did not work. I don't know why that is but at least the error is solved now. Took me about a week of headaches and trying!

Reply With Quote
Reply


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 11:07 PM.


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.04127 seconds
  • Memory Usage 2,213KB
  • Queries Executed 11 (?)
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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete