laravelista / comments

Native comments for your Laravel application.
MIT License
744 stars 142 forks source link

syntax error, unexpected 'SpamResponder' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) #142

Closed eduardonwa closed 3 years ago

eduardonwa commented 3 years ago

Recently I updated composer and with this came a newer version of php, I downgraded both but now im not so sure which version was the right one, it could be that this mightv'e affected one of my favorite packages.

Im running Composer version 1.10.17, and PHP 7.4.13.

Which PHP or Composer version is required? The package was running nicely before, thanks.

https://flareapp.io/share/lm23lXqP

Ive attached the error log just in case.

mabasic commented 3 years ago

Are you sure that you are running PHP 7.4?

Composer version does not matter. The package should run just fine with PHP 7.4 and Laravel 8

eduardonwa commented 3 years ago

To be honest I have been struggling with that, I just don't know how! Im sure it's one of those things but wouldn't hurt to ask :)

mabasic commented 3 years ago

Don't know where you are hosting your website, but check your php-cli version, and if you are using nginx php-fpm version. The php-fpm is more important than php-cli when you are getting errors in the browser.