Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP parse error #1253

Closed
dcolby opened this issue Oct 9, 2017 · 2 comments
Closed

PHP parse error #1253

dcolby opened this issue Oct 9, 2017 · 2 comments

Comments

@dcolby
Copy link

dcolby commented Oct 9, 2017

Explanation

Fresh install of Flarum following instructions on install page using composer. Installed as root user.


PHP Parse error: syntax error, unexpected 'finally' (T_STRING), expecting catch (T_CATCH) in .../vendor/flarum/core/src/Foundation/Application.php on line 132

Technical details

  • Version of Flarum: v0.1.0-beta.7
  • The webserver you are running: apache 2.4.6 on CentOS 7
  • PHP version: 7.0.23
  • Hosted environment: dedicated server

Flarum info

Output of "php flarum info", gives me:

[Symfony\Component\Console\Exception\CommandNotFoundException]  
  Command "info" is not defined.

@tobyzerner
Copy link
Contributor

Are you sure Flarum is being run with PHP 7? The finally keyword was introduced in PHP 5.5 so it would be odd to see this error on any version after that. Could it be that you've installed PHP 7 but Apache is still using PHP 5 for Flarum requests?

@dcolby
Copy link
Author

dcolby commented Oct 9, 2017

That was it exactly. I forgot to restart apache after upgrading PHP.
Thank you. Flarum is looking great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants