View Full Version : Major Problem
SportsCenter
05-16-2004, 12:01 PM
I'm upgrading from vBa 1.1. I put all the codes in and I'm getting errors.
Error 1 - Some kind of parse error on the global.php in the 680s.
Error 2 - Some kind of error on the 22nd line of cmps_index.php (the part where it says print_portal_output($home) )
Brian
05-16-2004, 12:10 PM
Can you paste the content of your cmps_index.php file here for me?
SportsCenter
05-16-2004, 12:16 PM
Error 3 - When I try to log into my Admin CP -> Unable to add cookies, header already sent.
File: /usr/home/ncaacen/public_html/forums/includes/functions.php
Line: 3799
Error 4 - There seems to have been a slight problem with the The Sports Fans database.
Please try again by pressing the refresh button in your browser.
An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.
We apologise for any inconvenience.
Here's my cmps_index.php (note - I renamed it to index.php) -
<?php
// ++=========================================================================++
// || vBadvanced CMPS v1.0 RC1 ||
// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved ||
// || This file may not be redistributed in whole or significant part. ||
// || http://vbadvanced.com ||
// ++ ========================================================================++
error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'adv_index');
define('VBA_PORTAL', true);
// Enter the Full Path (NOT THE URL!) to your forums here with No Trailing Slash
chdir('/usr/home/ncaacen/public_html/forums');
// No Further Editing Necessary
require_once('./global.php');
print_portal_output($home);
?>
if you want to see the site - www.ncaacenter.com
SportsCenter
05-16-2004, 12:17 PM
Error 5 - The forums just stopped working, displaying this error - Unable to add cookies, header already sent.
File: /usr/home/ncaacen/public_html/forums/includes/functions.php
Line: 3799
SportsCenter
05-16-2004, 12:24 PM
Also, If you want to see the global.php part, here it is -
/*======================================================================*\
|| ####################################################################
|| # Downloaded: 10:50, Sat Apr 3rd 2004
|| # CVS: $RCSfile: global.php,v $ - $Revision: 1.247 $
|| ####################################################################
\*======================================================================*/
if (defined('VBA_PORTAL'))
{
require_once('./includes/vba_cmps_include_bottom.php');
}
?>
The error is somewhere in there ^
Brian
05-16-2004, 12:28 PM
Did you run the install file? If not, run that first. If that doesn't help, try uploading an un-hacked version of your includes/functions.php.
SportsCenter
05-16-2004, 12:29 PM
I can't it requires me to login to my Admin CP, and when I try that, I get this error
Unable to add cookies, header already sent.
File: /usr/home/ncaacen/public_html/forums/includes/functions.php
Line: 3799
Brian
05-16-2004, 12:31 PM
Upload an un-hacked version of your functions.php file and see if that helps. If so, then you've made a mistake when editing that file. If that is the case, try editing it again with a simple text editor. Do not use Dreamweaver or a similar program as those have been known to modify code that they shouldn't.
SportsCenter
05-16-2004, 12:54 PM
Where can I get an un-hacked version of it? :\
Brian
05-16-2004, 12:57 PM
If you don't still have the original files somewhere then you can download them from vbulletin.com's member's area. ;)
SportsCenter
05-16-2004, 01:07 PM
Well, this is where line 3799 is
// get CSS width for outerdivwidth from outertablewidth
if (strpos($stylevar['outertablewidth'], '%') === false)
{
$stylevar['outerdivwidth'] = $stylevar['outertablewidth'] . 'px';
}
else
{
$stylevar['outerdivwidth'] = $stylevar['outertablewidth'];
}
// get CSS width for divwidth from tablewidth
if (strpos($stylevar['tablewidth'], '%') === false)
{
$stylevar['divwidth'] = $stylevar['tablewidth'] . 'px';
}
else if ($stylevar['tablewidth'] == '100%')
{
$stylevar['divwidth'] = 'auto';
}
LINE 3799 >>> else
{
$stylevar['divwidth'] = $stylevar['tablewidth'];
}
return $stylevar;
}
I don't see how that has anything to do with CMPS, but I never had this error until now :(
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.