PDA

View Full Version : Error with cmps_index.php


luiseman
08-24-2004, 01:51 PM
Version vb 3.0.3. New installation.

Version vba cmps 1.0.0

http://www.grassteam.com/cmps_index.php

http://www.grassteam.com/foroccnet30


When I'm installing vbadvanced following the instructions, at this step:

File: cmps_index.php

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

chdir('./usr/home/calamar/public_html/foroccnet30');

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

require_once('./global.php');

print_portal_output($home);

Failing to open page:

Warning: chdir(): No such file or directory (errno 2) in /usr/home/calamar/public_html/cmps_index.php on line 19

Warning: main(./global.php): failed to open stream: No such file or directory in /usr/home/calamar/public_html/cmps_index.php on line 25

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /usr/home/calamar/public_html/cmps_index.php on line 25


In file global.php the change:

// identify where we are
define('VB_AREA', 'Forum');

// aņadido portal

if (defined('VBA_PORTAL'))
{
$phrasegroups = array_merge($phrasegroups,
array(
'calendar',
'adv_portal',
'postbit'
)
);

$specialtemplates = array_merge($specialtemplates,
array(
'adv_modules',
'adv_portal_opts',
'attachmentcache',
'bbcodecache',
'birthdaycache',
'eventcache',
'iconcache',
'maxloggedin',
'smiliecache',
'userstats'
)
);

$globaltemplates = array_merge($globaltemplates,
array(
'adv_portal',
'adv_portal_footer'
)
);
}

// fin aņadido portal


// #############################################################################
// Start initialisation


Regards.

luiseman
08-24-2004, 02:01 PM
everything in order

Our Sponsors
 

mholtum
08-24-2004, 02:06 PM
chdir('./usr/home/calamar/public_html/foroccnet30'); This is wrong
I have my forums in /forum/
so I have chdir('./forum');

mholtum
08-24-2004, 02:08 PM
Yours should be :
chdir('./foroccnet30');

Our Sponsors
 

Brian
08-24-2004, 02:35 PM
That line should be:
chdir('/usr/home/calamar/public_html/foroccnet30');

Or, as mholtum said, this will probably work as well:

chdir('./foroccnet30');