vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Costum page error (https://vborg.vbsupport.ru/showthread.php?t=235217)

Snakehill 02-07-2010 07:58 AM

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!

Snakehill 02-09-2010 10:40 AM

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

Thanks.

Marco van Herwaarden 02-09-2010 10:45 AM

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.

Snakehill 02-09-2010 02:20 PM

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.

Marco van Herwaarden 02-10-2010 12:53 PM

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.

Snakehill 02-10-2010 04:04 PM

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?

Snakehill 02-17-2010 06:08 PM

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!

:D


All times are GMT. The time now is 10:52 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.00997 seconds
  • Memory Usage 1,724KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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