Hi guys,
I get this error on the installation of composer...
Don't really get it. Maybe you can help me?
`> Illuminate\Foundation\ComposerScripts::postInstall
php artisan optimize --force
PHP Fatal error: Uncaught ReflectionException: Class config does not exist in /home/status/web/public_html/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php:734
Stack trace:0 /home/status/web/public_html/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php(734): ReflectionClass->__construct('config')
Script php artisan optimize --force handling the post-install-cmd event returned with error code 255`
Try running rm -rf bootstrap/cache{,t}/*.
Well, unfortunately that did not fix it...
It may be worth running an rm -rf vendor && rm -rf bootstrap/cache{,t}/* then running composer install
I still get the same error :(
Is this a fresh install of Cachet?
Yes a new fresh EC2 instance and an install of Vesta CP on it...
Did you run composer install --no-dev?
What version of PHP are you using?
Sorry for the late reply, but yeah I did run composer install --no-dev and it gives me this error: Script php artisan optimize --force handling the post-install-cmd event returned with error code 255
I'm using PHP 7.0.15-0ubuntu0.16.04.2 (cli) ( NTS )
I ran into this exact error also, using PHP70 from the REMI repository.
It turns out I was missing both php70-php-bcmath and php70-php-pdo, once I installed these packages the issue was resolved though no error or logs prior pointed to this being the issue. Found it on the Laravel forums.
Most helpful comment
I ran into this exact error also, using PHP70 from the REMI repository.
It turns out I was missing both php70-php-bcmath and php70-php-pdo, once I installed these packages the issue was resolved though no error or logs prior pointed to this being the issue. Found it on the Laravel forums.