mybb / mybb2

The repository for the MyBB 2 forum software. Not to be used on live boards.
https://www.mybb.com
BSD 3-Clause "New" or "Revised" License
111 stars 45 forks source link

Unexpected Error During Installation. #247

Closed chope1 closed 8 years ago

chope1 commented 8 years ago

I got this error after running Composer Install PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in /var/www/..../mybb/app/Widgets/Registry.php on line 87

[Symfony\Component\Debug\Exception\FatalErrorException] syntax error, unexpected ':', expecting ';' or '{'

euantorano commented 8 years ago

Hi,

Which version of PHP are you running (you can find out by running php -v at the command line). MyBB 2.0 requires PHP 7.0 as it makes use of scalar type hints and return hints.

chope1 commented 8 years ago

PHP 5.5.9 Wasn't aware Mybb2 requires PHP 7, shame I cannot upgrade the existing one because my forum Mybb 1.8 is running on it with many plugins which will probably break it. I will have to get another instances to with fresh PHP 7 installation. Thanks.

euantorano commented 8 years ago

Hi, MyBB 2.0 is not ready to run on a live forum anyway, and there is not currently a way to upgrade from 1.8.

On 23 Aug 2016, at 19:01, chope1 notifications@github.com wrote:

PHP 5.5.9 Wasn't aware Mybb2 requires PHP 7, shame I cannot upgrade he existing one because my forum Mybb 1.8 is running on it with many plugins which will probably break it. I will have to get another instances to with fresh PHP 7 installation. Thanks.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

chope1 commented 8 years ago

I know, not trying to upgrade from 1.8. I am running the test separately, the upgrade I mean is PHP not Mybb. Thanks.

euantorano commented 8 years ago

Ah, fair enough!

On 23 Aug 2016, at 19:17, chope1 notifications@github.com wrote:

I know, not trying to upgrade from 1.8. I am running the test separately, the upgrade I mean is PHP not Mybb. Thanks.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mybb/mybb2/issues/247#issuecomment-241825364, or mute the thread https://github.com/notifications/unsubscribe-auth/AAttcYdZJ1aXvlZYr68b-RbWJQVDOh0Fks5qizlHgaJpZM4Jq44a.