PDA

View Full Version : Parse error: syntax error...


ThePapabear
01-09-2005, 08:12 AM
Hi!

IŽve installed 3.0.5 on my local testserver and it runs fine. Now installing the vBadvanced and running in troubles...

IŽve checked all the files 3 times and reinstalled all VBa files. But the same error appears again and again:
Parse error: syntax error, unexpected T_GLOBAL in C:\apachefriends\xampp\htdocs\web\index.php on line 27

and here my index.php:
<?php
// ++=========================================================================++
// || vBadvanced CMPS v1.0.0
// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || Downloaded 11:28, Sat Jan 8th 2005 - 7469
// ||
// ++ ========================================================================++

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:\apachefriends\htdocs\web\forum\');

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

require_once('global.php');

print_portal_output($home);

?>

When changing line 27 to "('./global.php')" i get an parse error again:
Parse error: syntax error, unexpected '/' in C:\apachefriends\xampp\htdocs\web\index.php on line 27

Local i have installed the newest version of XAMPP on WinXP SP2 which runs without problems. Thanks for any help.

greets
ThePapabear

PS: i forgot to say, that the forums version is the german one from vbulletin-germany.com

Brian
01-09-2005, 11:08 AM
Your chdir line needs to be changed to this:
chdir('c:/apachefriends/htdocs/web/forum');

If you get errors after that then you'll also need to change the require_once() line back.

Our Sponsors
 

ThePapabear
01-09-2005, 12:58 PM
Hi!

Thanks! This helps one step along the way. The lines look now like this:
chdir('c:/apachefriends/xampp/htdocs/web/forum/');
require_once('./global.php');
YouŽll see, that 3 times checking is not enough. A part of the directory was missing (xampp). No error any more, but blank page.... :(

Could this be a problem with languages? German board and english vBadvanced?
Forum shows up normally, but without blocks...

greets
ThePapabear

Ranma
01-09-2005, 01:15 PM
run the install Script again
but only install the Templates

Our Sponsors
 

ThePapabear
01-09-2005, 02:34 PM
Hi!

Reinstalled templates: no change, blank page
Reinstalled whole CMP: no change, blank page

Now i realy donŽt know any other way to try. If someone wantŽs to look at the files, i can give him an ftp-account per pm.

greets
ThePapabear

Brian
01-09-2005, 04:29 PM
Remove the / from the end of your path.

ThePapabear
01-09-2005, 04:42 PM
Hi!

I did so, but the page is blank. At the server, where the whole forum should get installed it works fine. Some things i will never understand....
So iŽll have to test all on this server. DoesnŽt make it easyer but works...

Thanks for helping!

greets
ThePapabear

Ranma
01-09-2005, 05:09 PM
i had this problem in my site ..
i did make sure that i rehacked all the files needed and reinstalled the templates
and while viewing the page press Ctrl + F5 cuz the damn blank page was in the cash and after pressing Ctrl F5 worked fine for me ^_^

ThePapabear
01-10-2005, 04:47 PM
..i allways refresh with pressed STRG. :D
Something is loading, but nothing showing...
IŽll do my work on the server at the hoster. Better not so easy to work, than not able to work anything on it.

greets
ThePapabear