View Full Version : Installation prob with cmps_index.php
Raitsa
06-20-2004, 05:11 PM
Hey guys, this all too familiar prob with me too, and i cant seem to be able to solve it.
The installation seemed to go 100% smoothly, until i visited
http://forum.hitechplace.com/cmps_index.php
Then i got this:
Warning: chdir(): No such file or directory (errno 2) in /home/.fluffball/mraitio/forum.hitechplace.com/cmps_index.php on line 19
Unable to add cookies, header already sent.
File: /home/.fluffball/mraitio/forum.hitechplace.com/cmps_index.php
Line: 19
I´ve read the faqs & forum posts, but still no go after countless retries.
It must be the path to the forums, which in my case is a subforum to hitechplace: forum.hitechplace.com
This is how my cmps_index.php looks like now:
<?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('./home/mraitio/forum.hitechplace.com');
// ============================================
// No Further Editing Necessary!
// ============================================
require_once('./global.php');
print_portal_output($home);
?>
Any ideas, please?
Raitsa
06-20-2004, 05:22 PM
And some more error reporting, if its any of use to determine on whats wrong:
Warning: chdir(): No such file or directory (errno 2) in /home/.fluffball/mraitio/forum.hitechplace.com/cmps_index.php on line 19
Parse error: parse error, unexpected $ in /home/.fluffball/mraitio/forum.hitechplace.com/includes/functions_calendar.php on line 1557
DarknessDivine
06-20-2004, 05:50 PM
I believe the path is definately wrong..you don't need the .com at the end..
see here's what mine looks like
chdir('/home/madmadd/public_html/forum')
mholtum
06-20-2004, 05:55 PM
chdir(): /home/.fluffball/mraitio/forum.hitechplace/ I beilve
Raitsa
06-20-2004, 05:57 PM
I believe the path is definately wrong..you don't need the .com at the end..
Hmm, notice that my forum is on a subforum to hitechplace:
forum.hitechplace.com
so the .com has to be there?
Raitsa
06-20-2004, 06:03 PM
chdir(): /home/.fluffball/mraitio/forum.hitechplace/ I beilve
Thanks mholtum, but any of the following:
/home/.fluffball/mraitio/forum.hitechplace/
/home/.fluffball/mraitio/forum.hitechplace
/home/mraitio/forum.hitechplace/
/home/mraitio/forum.hitechplace
dont seem to make any difference. :(
Raitsa
06-20-2004, 06:06 PM
By the way, _SERVER["PATH_TRANSLATED"]
gives me this:
/home/mraitio/forum.hitechplace.com/info.php
mholtum
06-20-2004, 08:16 PM
somewhere here there is a php file that after loaded and navigated to will give the the exact path.. Someone help me out here. info.php I believe?
DarknessDivine
06-20-2004, 08:24 PM
Yeah mholtum inof.php is correct..But I think he's done that if he already has SERVER["PATH_TRANSLATED"] ..
:confused:
I'm trying here :o
mholtum
06-20-2004, 08:31 PM
Yeah mholtum inof.php is correctSERVER["PATH_TRANSLATED"] ..
My bad, i thought it was info.php :D
Raitsa
06-21-2004, 12:54 AM
Yes, thanks guys for the poiinters, but all these hints have been done, any ideas on what i should try next?
Raitsa
06-21-2004, 01:45 AM
Now, that my cmps_index.php is set like this:
<?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('/home/mraitio/forum.hitechplace.com');
// ============================================
// No Further Editing Necessary!
// ============================================
require_once('./global.php');
print_portal_output($home);
?>
i get only this:
Parse error: parse error, unexpected $ in /home/.fluffball/mraitio/forum.hitechplace.com/includes/functions_calendar.php on line 1557
But changes have been made as they should in functions_calendar.php
I am lost on how to proceed.
Raitsa
06-21-2004, 02:02 AM
I keep bugging you guys:
the readme file says:
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.
So i should leave cmps_index.php as it was originally?
BTW, i am not using the calendar at all on my forums, does it matter?
Cos now it seems calendar could be the one thats causing these probs?
I put the calendar on and lost my forums: i got the same error message then, that scared the hell out of me, but luckily, when i put the calendar off from the settings, the forum was ok again.
Raitsa
06-21-2004, 02:16 AM
Still more notes:
the calendar, that is included in the VB3.01, does not work from my forum either, when i click the link http://forum.hitechplace.com/calendar.php? all i get is this error msg:
Parse error: parse error, unexpected $ in /home/.fluffball/mraitio/forum.hitechplace.com/includes/functions_calendar.php on line 1557
The cmps_index.php & my VB3.01 forum index.php are located in the same folder.
attroll
06-21-2004, 02:27 AM
So I am confused. Is this in the same directory as your forums?
Raitsa
06-21-2004, 02:32 AM
Yes.
attroll
06-21-2004, 02:47 AM
Yes.
I started to do this to a new site I was creating on my existing site because I am running two forums on my site. So I realized I was going to have these problems. So I moved the second forum into a directory that looks like this:
/home/mysite/public_html/geomaine/forum/ect..
I put the cmps_index.php into the /home/mysite/public_html/geomaine directory and put all my forums in a forum directory under that.
Sorry I could not help. I don't know why you want to have it in the same directory as your forums. That would only seems like it would casuse problems later.
Raitsa
06-21-2004, 03:01 AM
Now that they are on the same folder (i did not see any info on not to install vBadvanced CMPS like i did), cant the cmps_index.php be named something else like portalindex.php after it hopefully working as it should?
I am uncertain, if both these files can be on the same folder or not?
Are my problems related to my forum´s index.php & cmps_index.php being in the same folder?
attroll
06-21-2004, 03:10 AM
Well the reason I did it like I did was because when someone types in your sites doamin name for example www.mysite.com. When it goes to that loaction it automatically looks for a file named index.php and executes it. It will not do this if the file is named cmps_index.php. So what I did was rename it to index.php. But you can not do that if you have it in the same directory as your forums because the forums already has a filed called index.php. so when someone types www.mysite.com then it will execute the forums.
I hope this made some sense. I am off to bed now. Wish I could help you some more. But I don't know anything about having them in the same directory. You will have to wait and maybe Brian will let you know how to get this working.
Raitsa
06-21-2004, 01:38 PM
Hi guys.
Happy to report that my probs are now over:
post by Brian:
"The problem was caused because you modified your functions_calendar.php file incorrectly. I've fixed the problem for you and it seem to be working fine now. :) "
Nevertheless, you should see my wide smile now, huge thanks to Brian and thanks for everyone else who helped me out :D
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.