View Full Version : cmps_index.php in root problem.
seaslash
11-11-2006, 10:56 PM
Hi my problem is, i installed vbadanced in /forums where my forum root is. I then tried to put my cmps_index.php in the / so that the first thing they come to is that (yes i renamed it to index.php, yes and changed it in the default in the admin cp). I know there is nothing wrong with my installation because once i moved the cmps_index.php to the /forum it worked. I tried changing ./include and ./global to ./forum/include and ./forum/global but it still does not work. Any suggestions on what I have to do to fix this?
Thank you.
Brian
11-12-2006, 04:32 PM
How exactly does it not work? What happens when you load the page?
seaslash
11-12-2006, 05:05 PM
I get a blank page. It loads, but stays blank. Do you think it might be because I uploaded the cmps_index.php after I installed vdadvanced? Thats all I can really think of.
Kwith
11-13-2006, 01:14 PM
I'm getting a similar problem.
The only difference is that my page actually loads, however the links on the cmps_index.php page are all pointing to the root directory not the /forum directory.
I've checked my config.php and the directory in the cmps_index.php file and they are both showing the same directory for the forum.
Brian
11-13-2006, 02:14 PM
seaslash - Sounds like your $forumpath variable in the cmps_index.php file is incorrect. Please try the suggestions in this thread (http://www.vbadvanced.com/forum/showthread.php?t=1343) and see if that helps.
Kwith - Please see this thread (http://www.vbadvanced.com/forum/showthread.php?t=18042).
seaslash
11-13-2006, 03:48 PM
seaslash - Sounds like your $forumpath variable in the cmps_index.php file is incorrect. Please try the suggestions in this thread (http://www.vbadvanced.com/forum/showthread.php?t=1343) and see if that helps.
Kwith - Please see this thread (http://www.vbadvanced.com/forum/showthread.php?t=18042).
No I tried that already :confused:. I have no idea whats wrong.
Kwith
11-13-2006, 04:24 PM
Thanks Brian.
Brian
11-13-2006, 04:35 PM
No I tried that already :confused:. I have no idea whats wrong.
Can you copy that line of code and paste it here for me?
seaslash
11-13-2006, 08:03 PM
Can you copy that line of code and paste it here for me?
/home/users/web/b2740/pow.firefly09/htdocs
Its' powweb's stupid custom job. I honestly dont think thats the problem because if i add /forum and move it to the forum folder it works perfect.
You dont think it has anything to do with the includes it has to load?
catcherman
11-14-2006, 06:35 PM
Shouldn't you have /forum no matter where the file is on your site? It's pointing to where your forums are located.
Brian
11-15-2006, 03:32 PM
As catcherman said, it needs to have /forum at the end.
/home/users/web/b2740/pow.firefly09/htdocs/forum
Mick2015
11-16-2006, 03:50 PM
hi all
im new to this portal system and i get the same problem i get this error while im trying to view the main index.php
Parse error: parse error in C:\Inetpub\vhosts\ml-profiles.co.uk\httpdocs\forum\cmps_index.php on line 30
Brian
11-17-2006, 05:08 PM
That means that you've modified the file incorrectly. Can you post the contents of your cmps_index.php file here?
Mick2015
11-19-2006, 12:41 PM
ya sure
Here it is
<?php
// ++=========================================================================++
// || vBadvanced CMPS v2.2.1 (vB 3.6) - 41481
// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || Downloaded 14:13, Thu Nov 16th 2006
// ||
// ++ ========================================================================++
error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'adv_index');
define('VBA_PORTAL', true);
define('VBA_SCRIPT', 'CMPS');
// ============================================
// Enter the full path to your forum here
// Example: /home/vbadvanced/public_html/forum
// ============================================
//$forumpath = 'C:\\Inetpub\\vhosts\\ml-profiles.co.uk\\httpdocs\forum'
$forumpath = '/httpdocs/forum'
// ============================================
// No Further Editing Necessary!
// ============================================
if ($forumpath)
{
if (!is_dir($forumpath))
{
echo 'Invalid forum path specified! Please edit this file and be sure to include the correct path for your $forumpath variable.';
exit;
}
chdir($forumpath);
}
$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();
require_once('./includes/vba_cmps_include_template.php');
require_once('./global.php');
print_portal_output($home);
?>
Brian
11-20-2006, 01:10 PM
Change this:
$forumpath = '/httpdocs/forum'
To this:
$forumpath = '/httpdocs/forum';
(just adding the ";" mark at the end)
Mick2015
11-21-2006, 01:11 PM
omg !!!! :eek: :eek: jsut 1 little thing that messed it up ! Lmao thanks alot now it working
Bluecafe
11-29-2006, 06:07 AM
Getting probem...
I have tried this...but could not fixed!!
in /home/my site name/public_html/cmps_index.php on line 22
i have not put .com .so how i can fixed this!!
Bluecafe
11-29-2006, 06:09 AM
Here's it show
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/antu/public_html/cmps_index.php on line 22
Brian
11-29-2006, 01:54 PM
Can you post the contents of your cmps_index.php file?
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.