MyBB Community Forums

Full Version: parse error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying to do a new installation of Mybb I have never used this software before but when i go into the install file i am getting this parse error
Quote:Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home2/vladd/public_html/forum/inc/class_core.php on line 18
line 18 of the file is
Quote:public $version = "1.6.0";
is there anyway to get rid of the error?
Your host doesn't run PHP 5.1+.
(2010-09-01, 09:35 AM)MattRogowski Wrote: [ -> ]Your host doesn't run PHP 5.1+.

my server has php version 5.2.11
How are you absolutely sure the server does run that version? The error you are getting is due to your host not running PHP 5.1 or higher.
Make sure that's what you're actually running and isn't just what's available. Sometimes a host will offer more than one version, 5.2.11 may be the highest available but you may be running something older.
What Matt said. Often a host will offer PHP 4 and PHP 5. It's up to the webmaster to indicate which you wish to use.
Can you go ACP > Tools & Maintenance > View PHP info > see what it says in the header beside "PHP Version"