PDA

View Full Version : cmps_index.php problem


traderx
11-02-2004, 12:08 AM
Hello... this is the error that I am getting after trying to access cmps_index.php. This is from a local server... if that matters.

Warning: chdir(): No such file or directory (errno 2) in C:\xampp\htdocs\cmps_index.php on line 19

Warning: main(./global.php): failed to open stream: No such file or directory in C:\xampp\htdocs\cmps_index.php on line 25

Fatal error: main(): Failed opening required './global.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\cmps_index.php on line 25

Could this be that I don't have the correct full path in my cmps_index.php?
Any help would be great.
Coll

Ghostsuit
11-02-2004, 05:43 AM
If you change the ./global.php to the full path to where global.php it should work.

Our Sponsors
 

Brian
11-02-2004, 10:34 AM
No, then it wouldn't be able to include the other files in vBulletin.

Please check the FAQ forum for the answer.

traderx
11-02-2004, 10:38 AM
nope

I have a index1.php that I didn't create that does work.... the only different between the two is this on line 12

This is in my index1.php that does work
define('VBA_PORTAL', false);

this is in my cmps_index.php that doesn't work
define('VBA_PORTAL', true);


any more ideas?

Our Sponsors
 

Brian
11-02-2004, 10:44 AM
http://www.vbadvanced.com/forum/showthread.php?t=1343

traderx
11-02-2004, 10:57 AM
Ok I did that brian and added what it had said: _SERVER["PATH_TRANSLATED"] C:/xampp/htdocs/phpinfo.php

below is what I have for my index.php file
<?php
// ++=========================================================================++
// || vBadvanced CMPS v1.0 RC2 ||
// || © 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 to your forum here
// Example: /home/vbadvanced/public_html/forum
// ============================================

chdir('C:/xampp/htdocs/forums');

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

require_once('C:/xampp/htdocs/forum/global.php');

print_portal_output($home);

?>

And this is what I get NOW after adding C:/xampp/htdocs/forum as my full path
Warning: chdir(): No such file or directory (errno 2) in C:\xampp\htdocs\index.php on line 19

Warning: main(./includes/init.php): failed to open stream: No such file or directory in C:\xampp\htdocs\forum\global.php on line 53

Fatal error: main(): Failed opening required './includes/init.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\forum\global.php on line 53

traderx
11-02-2004, 11:37 AM
got it.... didn't need the c:/


D'oh

Brian
11-02-2004, 11:38 AM
require_once('C:/xampp/htdocs/forum/global.php');

Change that back to:
require_once('./global.php');


Also, according to the error, your forum directory is called 'forum', not 'forums'.