PDA

View Full Version : Got an error need some help fixing it (vbadvanced)


kobescoresagain
05-12-2005, 04:05 PM
Okay installed today. Got an error. Think it has to do with the path that you have to choose on step three. Here is the error:


Parse error: parse error, unexpected '/' in /homepages/16/d117449961/htdocs/cmps_index.php on line 21

I did the step where it says to make a file php.info and then check it. It told me that the path was

/kunden/homepages/16/d117449961/htdocs/forums/info.php

(I don't even know why it says that) (but that is what it said)

I replaced the code so that it looks like this

<?php
// ++================================================ =========================++
// || vBadvanced CMPS v1.0.1
// || ? 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || vb.org distro
// ||
// ++ ================================================== ======================++

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
// ============================================

/kunden/homepages/16/d117449961/htdocs/forums/info.php

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

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

require_once('./global.php');

print_portal_output($home);

?>

Can anyone help? i messed around with it a little and can't figure it out. thanks

RichieBoy67
05-12-2005, 04:18 PM
Remove the /info.php

kobescoresagain
05-12-2005, 04:21 PM
If I do that then I get an error at same place
parse error: parse error, unexpected '/' in /homepages/16/d117449961/htdocs/cmps_index.php on line 21

I put it in my main directory it game me /kunden/homepages/16/d117449961/htdocs

If I put it in my forums it just adds /forums to the end

I will send $10 paypal to anyone who can get me up in the next hour.

Marco van Herwaarden
05-12-2005, 05:34 PM
That line should probably be:
chmod('/kunden/homepages/16/d117449961/htdocs/forums');

kobescoresagain
05-12-2005, 08:22 PM
I changed it to that. Then i get more errors.
Warning: Wrong parameter count for chmod() in /homepages/16/d117449961/htdocs/cmps_index.php on line 21

Warning: main(./global.php): failed to open stream: No such file or directory in /homepages/16/d117449961/htdocs/cmps_index.php on line 32

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/local/lib/php') in /homepages/16/d117449961/htdocs/cmps_index.php on line 32

Still have an error at that same line though. The other two then appear as well.

FightRice.com
05-12-2005, 10:13 PM
Try this instead

chdir('/kunden/homepages/16/d117449961/htdocs/forums');

kobescoresagain
05-12-2005, 11:17 PM
ya that is what i needed. Thanks

Marco van Herwaarden
05-13-2005, 04:34 AM
oops i typed cchmod instead of chdir. ;)

Thanks for correcting FightRice.

kobescoresagain
05-13-2005, 04:40 AM
haha it is cool.
Could you help me out on how to make the custom content pages? Not sure how to do it? thanks