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

v2.1.0 uncaught exception #1462

Closed
rjbrown99 opened this issue Feb 7, 2016 · 15 comments
Closed

v2.1.0 uncaught exception #1462

rjbrown99 opened this issue Feb 7, 2016 · 15 comments
Milestone

Comments

@rjbrown99
Copy link

I'm seeing the following error with v2.1.0 of composer.

PHP Fatal error:  Uncaught exception 'ReflectionException' with message 'Class config does not exist' in /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php:738
Stack trace:
#0 /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php(738): ReflectionClass->__construct('config')
#1 /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php(633): Illuminate\Container\Container->build('config', Array)
#2 /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(674): Illuminate\Container\Container->make('config', Array)
#3 /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php(1178): Illuminate\Foundation\Application->make('config')
#4 /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php(1223): Illuminate\Container\Container->offsetGet('config')
#5 /var/www/html/Cachet/vendor/graham-campbell/exceptions/src/ExceptionHandler.php(46): Illuminate\Container\C in /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 738

I had v2.0.4 working fine and was trying to upgrade. I wondered if it was something on my end, so I started from scrach -

git clone /~https://github.com/cachethq/Cachet.git
cd Cachet
git checkout v2.1.0
(copy my old .env file to this dir)
composer install --no-dev -o

... then I get this:

Generating optimized autoload files
> php artisan clear-compiled
PHP Fatal error:  Uncaught exception 'ReflectionException' with message 'Class config does not exist' in /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php:738
Stack trace:
#0 /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php(738): ReflectionClass->__construct('config')
#1 /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php(633): Illuminate\Container\Container->build('config', Array)
#2 /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(674): Illuminate\Container\Container->make('config', Array)
#3 /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php(1178): Illuminate\Foundation\Application->make('config')
#4 /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php(1223): Illuminate\Container\Container->offsetGet('config')
#5 /var/www/html/Cachet/vendor/graham-campbell/exceptions/src/ExceptionHandler.php(46): Illuminate\Container\C in /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 738
Script php artisan clear-compiled handling the post-install-cmd event returned with an error


  [RuntimeException]                                                                                                                                                                                         
  Error Output: PHP Fatal error:  Uncaught exception 'ReflectionException' with message 'Class config does not exist' in /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.p  
  hp:738                                                                                                                                                                                                     
  Stack trace:                                                                                                                                                                                               
  #0 /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php(738): ReflectionClass->__construct('config')                                                                       
  #1 /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php(633): Illuminate\Container\Container->build('config', Array)                                                       
  #2 /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(674): Illuminate\Container\Container->make('config', Array)                                                     
  #3 /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php(1178): Illuminate\Foundation\Application->make('config')                                                           
  #4 /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php(1223): Illuminate\Container\Container->offsetGet('config')                                                         
  #5 /var/www/html/Cachet/vendor/graham-campbell/exceptions/src/ExceptionHandler.php(46): Illuminate\Container\C in /var/www/html/Cachet/vendor/laravel/framework/src/Illuminate/Container/Container.php on  
   line 738                                                                                                                                                                                                  


install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...

Since it happens even with a new checkout I'm assuming this is not on my end. Any suggestions or advice? Thank you.

@GrahamCampbell
Copy link
Contributor

Since it happens even with a new checkout I'm assuming this is not on my end

Not quite. Likely you've missed needed double quotes in your .env file.

@GrahamCampbell
Copy link
Contributor

I had v2.0.4 working fine and was trying to upgrade.

Also, note quite true. It has always been broken, but it was a bug that it wasn't crashing letting you know that stuff in the .env file as invalid and thus being ignored.

@GrahamCampbell
Copy link
Contributor

See #1456.

@GrahamCampbell
Copy link
Contributor

NB This was a Laravel bug which has since been fixed.

@rjbrown99
Copy link
Author

Thanks for the note, and you are indeed correct. I had MAIL_NAME set to two words, with no quotes.

@GrahamCampbell GrahamCampbell added this to the V2.1.1 milestone Feb 7, 2016
@yogeshshinde-tudip
Copy link

PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class App\Console\Kernel does not exist' in /var/www/html/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php:738

I am getting this error msg can anyone help to solved this problem

@jbrooksuk
Copy link
Member

rm -rf bootstrap/cache/*

@yogeshshinde-tudip
Copy link

rm -rf bootstrap/cache/*

Still it giving error

PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class App\Console\Kernel does not exist' in /var/www/html/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php:738

@jbrooksuk
Copy link
Member

Have you followed every step in https://docs.cachethq.io/docs/updating-cachet

@yogeshshinde-tudip
Copy link

this is full error message

PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class App\Console\Kernel does not exist' in /var/www/html/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php:738
Stack trace:
#0 /var/www/html/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(738): ReflectionClass->__construct('App\Console\Ker...')
#1 /var/www/html/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(633): Illuminate\Container\Container->build('App\Console\Ker...', Array)
#2 /var/www/html/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(674): Illuminate\Container\Container->make('App\Console\Ker...', Array)
#3 /var/www/html/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(230): Illuminate\Foundation\Application->make('App\Console\Ker...', Array)
#4 /var/www/html/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(735): Illuminate\Container\Container->Illuminate\Container{closure}(Object(Illuminate\Foundation in /var/www/html/laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 738

@GESUMAYOR
Copy link

Thank @GrahamCampbell. Your suggestions of double or expected quotes saved my ass this afternoon. Thanks many more times and to the forum at large

@hubertgrzeskowiak
Copy link

Getting this error on Cachet 2.1.2 and 2.2.1

@jbrooksuk
Copy link
Member

@hubertgrzeskowiak can we see the error please?

@hubertgrzeskowiak
Copy link

Just solved it.. I used PHP 7 instead of 5.x

@jbrooksuk
Copy link
Member

👍

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

6 participants