cachethq / cachet

🚦 The open-source status page system.
https://cachethq.io
MIT License
13.93k stars 1.55k forks source link

Can't install cachet. PHP error on composer install #4180

Closed adrian-abit closed 3 years ago

adrian-abit commented 3 years ago

Hey! I tried to install cachet today but it does not want to work...

I followed the guide on https://docs.cachethq.io/docs/installing-cachet and started to install via $ composer install --no-dev -o

This throws this error:

php artisan optimize --force Generating optimized class loader Compiling common classes PHP Fatal error: Uncaught ErrorException: count(): Parameter must be an array or an object that implements Countable in /var/www/Cachet/vendor/graham-campbell/exceptions/src/ExceptionIdentifier.php:51 Stack trace:

0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()

1 /var/www/Cachet/vendor/graham-campbell/exceptions/src/ExceptionIdentifier.php(51): count()

2 /var/www/Cachet/vendor/graham-campbell/exceptions/src/ExceptionHandlerTrait.php(47): GrahamCampbell\Exceptions\Except ionIdentifier->identify()

3 /var/www/Cachet/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(79): GrahamCampbell \Exceptions\ExceptionHandler->report()

4 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleException()

5 {main}

thrown in /var/www/Cachet/vendor/graham-campbell/exceptions/src/ExceptionIdentifier.php on line 51 PHP Fatal error: Uncaught ErrorException: count(): Parameter must be an array or an object that implements Countable in /var/www/Cachet/vendor/graham-campbell/exceptions/src/ExceptionIdentifier.php:51 Stack trace:

0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()

1 /var/www/Cachet/vendor/graham-campbell/exceptions/src/ExceptionIdentifier.php(51): count()

2 /var/www/Cachet/vendor/graham-campbell/exceptions/src/ExceptionHandlerTrait.php(47): GrahamCampbell\Exceptions\Except ionIdentifier->identify()

3 /var/www/Cachet/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(79): GrahamCampbell \Exceptions\ExceptionHandler->report()

4 /var/www/Cachet/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(118): Illuminate\Fo undation\Bootstrap\HandleExceptions->handleException()

5 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown()

6 {main}

thrown in /var/www/Cachet/vendor/graham-campbell/exceptions/src/ExceptionIdentifier.php on line 51 Script php artisan optimize --force handling the post-install-cmd event returned with error code 255

Could anyone help me resolve this problem?

welcome[bot] commented 3 years ago

:wave: Thank you for opening your first issue. I'm just an automated bot that's here to help you get the information you need quicker, so please ignore this message if it doesn't apply to your issue. If you're looking for support, you should try the Slack group by registering your email address at https://cachethq-slack.herokuapp.com. Alternatively, email support@alt-three.com for our Professional support service (please note, this a paid service.) If you're issue is with documentation, you can suggest edits by clicking the Suggest Edits link on any page, or open an issue at https://github.com/CachetHQ/Docs

asheroto commented 3 years ago

I am also facing this issue

monelgordillo commented 3 years ago

I am also getting this issue as well.