PDA

View Full Version : cmps_index.php error


Charca
01-14-2007, 05:42 PM
When I'm trying to enter to my vbadvanced index (cmps_index.php), I get this error:

Parse error: syntax error, unexpected T_STRING in I:\FerozoWebHosting\mysite.com.ar\public_html\cmps_index.php on line 30


<?php
// ++=========================================================================++
// || vBadvanced CMPS v2.2.0 (vB 3.6) - 25780
// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || Downloaded 14:15, Thu Jul 13th 2006
// ||
// ++ ========================================================================++

error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'adv_index');
define('VBA_PORTAL', true);
define('VBA_SCRIPT', 'CMPS');

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

$forumpath = 'I:\FerozoWebHosting\mysite.com\upload\';

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

if (!is_dir($forumpath))
{
echo 'Invalid forum path specified! Please edit this file and be sure to include the correct path for your $forumpath variable.';
exit;
}

chdir($forumpath);

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

require_once('./includes/vba_cmps_include_template.php');
require_once('./global.php');

print_portal_output($home);

?>

Line 30 is

echo 'Invalid forum path specified! Please edit this file and be sure to include the correct path for your $forumpath variable.';

And I don't find any error there.

Hope you can help me :)

.:ChrC:.

Brian
01-15-2007, 09:31 AM
Change the \ marks in your $forumpath to /

Our Sponsors
 

Charca
01-15-2007, 03:55 PM
I've already tried that, but puting this / marks I get the simple error:

Invalid forum path specified! Please edit this file and be sure to include the correct path for your $forumpath variable.

It's a Windows server, so I think the forumpath should be something like "C:\appserver\www\forum\" but I still getting this error and I don't get it .-

By the way, using the forumpath.php in ANY folder on my public_html I get this direction:

I:\FerozoWebHosting\mywebsite.com.

I'm trying using I:\FerozoWebHosting\mywebsite.com\forum that should be the razonable forumpath, but it still give me the error on the first post -_-

I really don't know what to do :(

Thx a lot for your help!

.:ChrC:.

Charca
01-15-2007, 04:12 PM
I've already solved the problem!!! :D

I just put .\forum in my forum path and it works :D

Thx a lot!!

.:ChrC:.