LaravelCollective / html

HTML and Form Builders for the Laravel Framework
MIT License
4k stars 809 forks source link

L5.1 Class App\Console\Kernel does not exist #112

Closed olszak94 closed 8 years ago

olszak94 commented 8 years ago

whenever im trying to run composer update or require i get error

    root@websites:/var/www/rafdev.ovh/html/msvixen# composer update
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    - Removing illuminate/html (v5.0.0)
    - Removing laravelcollective/html (v5.1.7)
    Writing lock file
    Generating autoload files
    > php artisan clear-compiled
    PHP Fatal error:  Uncaught exception 'ReflectionException' with message 'Class App\Console\Kernel does not exist' in /var/www/rafdev.ovh/html/msvixen/vendor/laravel/framework/src/Illuminate/Container/Container.php:737
    Stack trace:
    #0 /var/www/rafdev.ovh/html/msvixen/vendor/laravel/framework/src/Illuminate/Container/Container.php(737): ReflectionClass->__construct('App\Console\Ker...')
    #1 /var/www/rafdev.ovh/html/msvixen/vendor/laravel/framework/src/Illuminate/Container/Container.php(627): Illuminate\Container\Container->build('App\Console\Ker...', Array)
    #2 /var/www/rafdev.ovh/html/msvixen/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(674): Illuminate\Container\Container->make('App\Console\Ker...', Array)
    #3 /var/www/rafdev.ovh/html/msvixen/vendor/laravel/framework/src/Illuminate/Container/Container.php(216): Illuminate\Foundation\Application->make('App\Console\Ker...', Array)
    #4 /var/www/rafdev.ovh/html/msvixen/vendor/laravel/framework/src/Illuminate/Container/Container.php(734): Illuminate\Container\Cont in /var/www/rafdev.ovh/html/msvixen/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 737
    Script php artisan clear-compiled handling the post-update-cmd event returned with an error

    [RuntimeException]                                                                                                                                                        
    Error Output: PHP Fatal error:  Uncaught exception 'ReflectionException' with message 'Class App\Console\Kernel does not exist' in /var/www/rafdev.ovh/html/msvixen/vend  
    or/laravel/framework/src/Illuminate/Container/Container.php:737                                                                                                           
    Stack trace:                                                                                                                                                              
    #0 /var/www/rafdev.ovh/html/msvixen/vendor/laravel/framework/src/Illuminate/Container/Container.php(737): ReflectionClass->__construct('App\Console\Ker...')              
    #1 /var/www/rafdev.ovh/html/msvixen/vendor/laravel/framework/src/Illuminate/Container/Container.php(627): Illuminate\Container\Container->build('App\Console\Ker...', Ar  
    ray)                                                                                                                                                                      
    #2 /var/www/rafdev.ovh/html/msvixen/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(674): Illuminate\Container\Container->make('App\Console\Ker...',   
    Array)                                                                                                                                                                    
    #3 /var/www/rafdev.ovh/html/msvixen/vendor/laravel/framework/src/Illuminate/Container/Container.php(216): Illuminate\Foundation\Application->make('App\Console\Ker...',   
    Array)                                                                                                                                                                    
    #4 /var/www/rafdev.ovh/html/msvixen/vendor/laravel/framework/src/Illuminate/Container/Container.php(734): Illuminate\Container\Cont in /var/www/rafdev.ovh/html/msvixen/  
    vendor/laravel/framework/src/Illuminate/Container/Container.php on line 737                                                                                               

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

    root@websites:/var/www/rafdev.ovh/html/msvixen# 

and this is my composer.json file

    {
      "name": "laravel/laravel",
      "description": "The Laravel Framework.",
      "keywords": [
        "framework",
        "laravel"
      ],
      "license": "MIT",
      "type": "project",
      "require": {
        "php": ">=5.5.9",
        "laravel/framework": "5.1.*",
        "skmetaly/laravel-twitch-restful-api": "dev-master",
        "laravelcollective/html": "5.*"
      },
      "require-dev": {
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~4.0",
        "phpspec/phpspec": "~2.1"
      },
      "autoload": {
        "classmap": [
          "database"
        ],
        "psr-4": {
          "App\\": "app/"
        }
      },
      "autoload-dev": {
        "classmap": [
          "tests/TestCase.php"
        ]
      },
      "scripts": {
        "post-install-cmd": [
          "php artisan clear-compiled",
          "php artisan optimize"
        ],
        "pre-update-cmd": [

        ],
        "post-update-cmd": [
          "php artisan clear-compiled",
          "php artisan optimize"
        ],
        "post-root-package-install": [
          "php -r \"copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
          "php artisan key:generate"
        ]
      },
      "config": {
        "preferred-install": "dist"
      }
    }
adamgoose commented 8 years ago

This is saying that your App\Http\Kernel does not exist, thus it is not an issue with the Laravel Collective. Please check out http://larachat.co/ to get real-time support with Laravel.