PDA


View Full Version : New Install


zigsterfrag
04-20-2005, 06:46 AM
Just installed the latest verion of vBadvanced everything went without a hitch.Modified all the files can log it Admin and see all my new setting etc.When i call the page i get thi error

Parse error: parse error, unexpected '/' in /home/evolutio/public_html/forums/cmps_index.php on line 32

I am trying to get it set up first before i make it the main site.

My cmps_index.php file is

<?php
// ++=========================================================================++
// || vBadvanced CMPS v1.0.1 - 8774
// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || Downloaded 09:18, Tue Apr 19th 2005
// ||
// ++ ========================================================================++

error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'adv_index');
define('VBA_PORTAL', true);

// ============================================
// Enter the full path to your forum here
// Example: /home/public_html/forums
// ============================================

chdir('/home/evolutio/public_html/forums);

// ============================================
// No Further Editing Necessary!
// ============================================

$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();

require_once('./global.php');

print_portal_output($home);?>

Any ideas as this is a cracking mod which i want to get up and running as soon as !

Thankyou

mholtum
04-20-2005, 07:05 AM
chdir('./forums');


Try that.

zigsterfrag
04-20-2005, 07:19 AM
No

Unfortunatley that dont work!

Is it something to do with the line

require_once('./global.php');

which is line 32 !

zigsterfrag
04-20-2005, 08:16 AM
Right have edited the lines for the ch dir to

chdir('./home/evolutio/public_html/forums');

and

chdir('./home/public_html/forums');

and

chdir('./forums');

i get this error

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/evolutio/public_html/forums/cmps_index.php on line 21




Unable to add cookies, header already sent.
File: /home/evolutio/public_html/forums/cmps_index.php
Line: 21

Getting nearer!

zigsterfrag
04-20-2005, 09:24 AM
Done it

if i just // the chdir('./home/public_html/forums');

it works fine

Once i have all the modules,styles and hacks done i will just upload the whole forums folder into the main directory and that should be teh new site.This is correct ! (i think)

TAr

zenithrs@bigpon
04-20-2005, 09:24 AM
In the first instance you were missing the single quote after /forum in the chdir() statement on line 21 which caused the parse error to be reported on line 32.

Secondly, from the installation instructions, note the bit I've highlighted in red...

In your cmps_index.php file:

Now open your cmps_index.php file in this folder and find:
chdir('./forum');

Replace this with the full path to your forum on your server.
Not sure what this means?

Note: If you are installing this script in the same directory as your forums then you may simply comment out this line.

Comment out the line by adding two forward slashes at the beginning of the line... //

zenithrs@bigpon
04-20-2005, 09:25 AM
We posted the same time. :D

QvnsQ
04-20-2005, 10:23 AM
all shout be set like this chdir('/home/evolutio/public_html/forums');

without the Dot