MyBB Community Forums

Full Version: Parse error when trying to install
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I get this message when I go to install myBB...

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home3/rss/public_html/forum/inc/class_core.php on line 18

I CHMOD'd all the files like I was supposed to and I did everything including reuploading everything. I read somewhere that it is only compatible with PHP5+? Well I have PHP version 5.2.6 and MySQL version 4.1.22-standard

The line of code that it says is an error is..

	public $version = "1.6.0";

So can anyone tell me what to fix or why it doesnt seem to install? Thanks. Also my forum is http://redsoldiersyndicate.com/forum

And strangely enough, when I go to the forum link, it gives me a separate error! help?
Are you sure you're actually running PHP 5.2.6?? That may be what's on offer but some hosts give you an option of different PHP versions to run, and it looks like you're actually running PHP 4.

Also is MySQL 4 the best they can offer you??
(2010-11-24, 11:34 PM)MattRogowski Wrote: [ -> ]Are you sure you're actually running PHP 5.2.6?? That may be what's on offer but some hosts give you an option of different PHP versions to run, and it looks like you're actually running PHP 4.

Also is MySQL 4 the best they can offer you??

Here is a attachment screenshot of my "stats" that the webhost says I have...

Also, when I go to my phpMyAdmin section it gives the following information...

localhost

* Server version: 4.1.22-standard
* Protocol version: 10
* Server: Localhost via UNIX socket
* User: rss@localhost

and

phpMyAdmin - 2.11.11

* MySQL client version: 4.1.22
* Used PHP extensions: mysql

Does that help at all? lol

Upload this to the same place you've uploaded the MyBB files, run it your browser, what does it say the PHP version is??
[attachment=20602]

I'm running a forum on PHP 5.2.6 and one on 5.2.8 just fine, the only people to get these errors are people running PHP 4.
(2010-11-24, 11:57 PM)MattRogowski Wrote: [ -> ]Upload this to the same place you've uploaded the MyBB files, run it your browser, what does it say the PHP version is??


I'm running a forum on PHP 5.2.6 and one on 5.2.8 just fine, the only people to get these errors are people running PHP 4.

Wow, it says it is PHP v 4.4.8.... ¬_¬

Ok haha, so now, how do I upgrade my PHP to the latest? I really don't know how to do any of this stuff lol
That's a relief, didn't know what I was going to say if this said PHP 5.2.6 too Toungue

That's helpful of your host then, says 5.2.6 in cPanel but that's not what you're actually using.

I haven't used cPanel for a while, but can you see anything on the control panel about different PHP versions?? if you can't, I'd just open a support ticket with your host and get them to upgrade it.

Also see if they can upgrade you to MySQL 5, PHP 5 and MySQL 5 should be pretty standard these days.
Wow I found out what the problem was......apparently my CPanel decided to use PHP4 to use all the php files. One simply click of "Use php5" was all that was needed.

Thanks for your help! lol