PDA

View Full Version : Error Message, How Can I Fix It?


nwind
01-31-2015, 07:44 PM
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.

define('DISABLE_HOOKS', true);

So it looks like this:
<?php
define('DISABLE_HOOKS', true);
/*================================================= =====================*\
|| ################################################## ################## ||
|| # vBulletin 4.2.2

Use a editor like notepad++ (http://notepad-plus-plus.org/download/v6.6.8.html) 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.


<?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
This is strange. Line 9 of forumdisplay.php is part of a comment block at the top of the file.


<?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

<div class="standard_error">
<form class="block vbform" method="post" action="login.php?do=login (https://vborg.vbsupport.ru/view-source:http://www.jouster.com/forums/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