View Full Version : having this problem: Warning: chdir() [function.chdir]: No such file or directory...
iwan_ccie
07-26-2005, 06:07 AM
Hi,
when I try to load this page cmps_index.php I get the following error:
"Warning: chdir() [function.chdir]: No such file or directory (errno 2) in c:\wamp\www\cpf\cmps_index.php on line 21"
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in c:\wamp\www\cpf\cmps_index.php on line 21
Unable to add cookies, header already sent.
File: "c:\wamp\www\cpf\cmps_index.php"
Line: 21
Does somebody know what I am doing wrong?
Thanks,
1996 328ti
07-26-2005, 09:42 AM
Does somebody know what I am doing wrong?
I'd go back and read the installation read me and FAQs.
Did you do the following?
In your cmps_index.php file:
Now open your cmps_index.php file in this folder and find:
chdir('/home/yoursite/public_html/forum');
Replace the path within the chdir() function with the full path to your forum on your server.
It looks like you are going to your cmps page, not the forum.
Brian
07-26-2005, 11:18 AM
http://www.vbadvanced.com/forum/showthread.php?t=1343
iwan_ccie
07-26-2005, 12:32 PM
Hi,
I runned the forum script and I got this message:
"c:/wamp/www/cpf"
So I checked my cmps_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:/wamp/www/cpf');
// ============================================
// No Further Editing Necessary!
// ============================================
require_once('./global.php');
print_portal_output($home);
?>
and it's now giving me the following error:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in c:\wamp\www\cpf\global.php on line 26
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in c:\wamp\www\cpf\global.php on line 41
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in c:\wamp\www\cpf\global.php on line 48
Unable to add cookies, header already sent.
File: "c:\wamp\www\cpf\global.php"
Line: 26
any sugestions?
Thanks,
ConqSoft
07-26-2005, 12:33 PM
Shouldn't it be: \ instead of / for a windows path?
iwan_ccie
07-26-2005, 03:21 PM
I still get this message:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in c:\wamp\www\cpf\global.php on line 23
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in c:\wamp\www\cpf\global.php on line 38
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in c:\wamp\www\cpf\global.php on line 45
Unable to add cookies, header already sent.
File: c:\wamp\www\cpf\global.php
Line: 23
Brian
07-27-2005, 12:56 PM
Add this just above the call to global.php in your cmps_index.php file:
$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();
iwan_ccie
07-27-2005, 05:20 PM
Hi Brian,
thanks for helping me out...
Where do I have the part you pasted in precisely???
I don't get what "the call" is...
Thanks,
Brian
07-27-2005, 08:44 PM
The only place in that file that you see 'global.php'.
require_once('./global.php');
iwan_ccie
07-28-2005, 09:24 AM
Hi,
So I have to put this
$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();
into this file:
global.php'
right?
Brian
07-28-2005, 12:53 PM
Add this just above the call to global.php in your cmps_index.php file:
$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();
.
iwan_ccie
07-28-2005, 03:50 PM
Hi,
this worked ...but its taking a lot of time to load the page ....
why is this?
Thanks,
Brian
07-28-2005, 05:11 PM
Can you post a link to your CMPS page so I can have a look?
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.