xoops forums

webe3d

Just popping in
Posted on: 2005/3/20 0:34
webe3d
webe3d (Show more)
Just popping in
Posts: 11
Since: 2005/3/20
#1

Parse error: unexpected '}' in ...

Hey guys,

The installation seemed to go smooth, then when I clicked on "your site," or whatever it said, it got this error message:

Parse error: parse error, unexpected '}' in /home/www/mysitename.com/index.php on line 82

How I did my setup:
I copied everything inside the "html" folder to the root of my server.

I then copied the "docs" folder to my root dir.

Probably some dome persissions thing.

Anyway, any ideas?

Thank you

jdseymour

Friend of XOOPS
Posted on: 2005/3/20 3:37
jdseymour
jdseymour (Show more)
Friend of XOOPS
Posts: 3782
Since: 2004/11/11
#2

Re: Parse error: unexpected '}' in ...

What are your server specs. PHP version , MySQL version, Server type and operating system?

webe3d

Just popping in
Posted on: 2005/3/20 3:56
webe3d
webe3d (Show more)
Just popping in
Posts: 11
Since: 2005/3/20
#3

Re: Parse error: unexpected '}' in ...

Operating system = Debian GNU/Linux
Perl version = v5.8.4
MySQL version = 4.0.23_Debian-4-log
PHP version = 4.3.4

RVirtue

Quite a regular
Posted on: 2005/3/20 8:22
RVirtue
RVirtue (Show more)
Quite a regular
Posts: 246
Since: 2004/8/4 9
#4

Re: Parse error: unexpected '}' in ...

Line 82?! There is no line 82 in the XOOPS 2.0.9.2 index.php file. It ends at line 46 and the whole thing (after 34 inital comment lines) is as follows
include "mainfile.php";

//check if start page is defined
if ( isset($xoopsConfig['startpage']) && $xoopsConfig['startpage'] != "" && $xoopsConfig['startpage'] != "--" ) {
    
header('Location: '.XOOPS_URL.'/modules/'.$xoopsConfig['startpage'].'/');
    exit();
} else {
    
$xoopsOption['show_cblock'] =1;
    include 
"header.php";
    include 
"footer.php";
}
?>
What does your index.php file look like?

webe3d

Just popping in
Posted on: 2005/3/20 21:50
webe3d
webe3d (Show more)
Just popping in
Posts: 11
Since: 2005/3/20
#5

Re: Parse error: unexpected '}' in ...

I checked the version number on my "index.php" and it was an old version. So, I downloaded XOOPS again, re-installed from scratch, and it worked! Jeez!

So who knows what it was, but thanks for your effort.