cachet icon indicating copy to clipboard operation
cachet copied to clipboard

2.0.4 to 2.1.0 upgrade error

Open andrekeller opened this issue 10 years ago • 2 comments

during composer install:

> php artisan clear-compiled
PHP Fatal error:  Class 'CachetHQ\Cachet\Providers\AppServiceProvider' not found in /opt/cachet/bootstrap/cache/compiled.php on line 6923


  [Symfony\Component\Debug\Exception\FatalErrorException]         
  Class 'CachetHQ\Cachet\Providers\AppServiceProvider' not found  


Script php artisan clear-compiled handling the post-install-cmd event returned with an error


  [RuntimeException]                                                                    
  Error Output: PHP Fatal error:  Class 'CachetHQ\Cachet\Providers\AppServiceProvider'  
   not found in /opt/cachet/bootstrap/cache/compiled.php on line 6923                   


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>]...

any idea how to fix?

andrekeller avatar Feb 07 '16 12:02 andrekeller

You need to delete services.json, services.php, compiled.php from the bootstrap/cache folder, then run php artisan app:update.

GrahamCampbell avatar Feb 07 '16 12:02 GrahamCampbell

OK thanks, after deleting all files from bootstrap/cache (config.php and compiled.php) the update went through.

andrekeller avatar Feb 07 '16 12:02 andrekeller