vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Error Message, How Can I Fix It? (https://vborg.vbsupport.ru/showthread.php?t=317052)

nwind 01-31-2015 07:44 PM

Error Message, How Can I Fix It?
 
If a user goes to a forum when not logged in, this message appears:
Unable to add cookies, header already sent.
File: /home/nwind/public_html/jouster.com/forums/forumdisplay.php
Line: 9
Any idea what I need to do to fix it?

Thanks!

ozzy47 01-31-2015 07:46 PM

Lets do this, disable plugins via the includes/config.php file.

To do that open your includes/config.php file and below <?php add the following.

PHP Code:

define('DISABLE_HOOKS'true); 

So it looks like this:
PHP Code:

<?php
define
('DISABLE_HOOKS'true);
/*=================================================  =====================*\
|| ##################################################  ################## ||
|| # vBulletin 4.2.2

Use a editor like notepad++ to edit any files, don't use Notepad or Wordpad.

If that fixes the issue enable plugins again by adding // before the line you added, then navigate to ACP --> Plugins & Products --> Manage Products and disable one mod at a time until you find the one causing the issue.

Once you find the culprit, post in that mods thread what the issue is, and maybe someone in that thread can help. :)

nerbert 01-31-2015 08:47 PM

This is strange. Line 9 of forumdisplay.php is part of a comment block at the top of the file.

Code:

<?php
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 4.2.2 Patch Level 1 - Licence Number XXXXXXXXX
|| # ---------------------------------------------------------------- # ||
|| # Copyright ?2000-2014 vBulletin Solutions Inc. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/

// ####################### SET PHP ENVIRONMENT ###########################


ozzy47 01-31-2015 08:49 PM

More than likely it is from a mod though.

Paul M 01-31-2015 09:11 PM

Not unless he modified the forumdisplay.php file.

Sounds to me like that file is either corrupt, or not standard.

ozzy47 01-31-2015 09:14 PM

Yeah that is a possibility also Paul, I usually tend to forget people might play with them. :)

ForceHSS 01-31-2015 09:50 PM

Quote:

Originally Posted by nerbert (Post 2535428)
This is strange. Line 9 of forumdisplay.php is part of a comment block at the top of the file.

Code:

<?php
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 4.2.2 Patch Level 1 - Licence Number XXXXXXXXX
|| # ---------------------------------------------------------------- # ||
|| # Copyright ?2000-2014 vBulletin Solutions Inc. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/

// ####################### SET PHP ENVIRONMENT ###########################


Looks the same as mine so what has been changed

ozzy47 01-31-2015 09:54 PM

We don't know, as the OP has not answered back.

ForceHSS 01-31-2015 10:03 PM

Not sure if this will help
Code:

<div class="standard_error">
    <form class="block vbform"  method="post" action="login.php?do=login" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">
        <h2 class="blockhead">vBulletin Message</h2>
                      <div class="blockbody">
                <div class="blockrow restore">Unable to add cookies, header already sent.<br />
 File: /home/nwind/public_html/jouster.com/forums/forumdisplay.php<br />
 Line: 9<br /></div>
            </div>
            <div class="blockfoot">Culvers Shooting Page Forums</div> 
            </form>
</div>

Maybe he has edited this template and messed it up


All times are GMT. The time now is 03:33 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.01032 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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