MyBB Community Forums

Full Version: Parse error: syntax error, unexpected '{'
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Hello, we got a board with MyBB 1.4 ( http://itznow.de/forum/ )
We got the domain from hostloco and we have too got PHP5. (Look Her: http://www.hostloco.com/webhosting/gold )
But this error comes :

Parse error: syntax error, unexpected '{' in /www/htdocs/itznow/forum/inc/functions.php on line 5605

How can I fix the Prob.?
it says both php4 and php5 on there

double check that php5 is actually what you are using

otherwise just remove the crap in inc/functions.php
I confirm:
Parse error: syntax error, unexpected '{' in /inc/functions.php on line 5592 on PHP 4.

All ok on PHP 5.
PHP 4 is unsupported. All newest versions use the latest PHP version 5.
MyBB 1.4.13 should work with PHP 4.
(2010-04-19, 03:00 PM)StefanT Wrote: [ -> ]MyBB 1.4.13 should work with PHP 4.

Unfortunately no, tested now on another forum.
well, it still contains try catch, which PHP4 doesn't know, and a syntax error is a syntax error even if it's in if(0) { crap }. So chances are it won't work. They're digging their own grave with these patches.
Well, the try-catch is not in the lines posted above... Wink
it is, in the inc/functions.php from 1.4.13 full package, and for the patched files one it'll just be on a different line

to fix, just take out the try catch if block at the end of functions.php, it's bullshit anyhow
But I GOT PHP5??
Pages: 1 2 3