简体   繁体   English

未捕获的异常 'ReflectionException' 带有消息 'Class App\\Console\\Kernel does not exist'

[英]Uncaught exception 'ReflectionException' with message 'Class App\Console\Kernel does not exist'

I am getting the below error after i ran this command composer dump-autoload .运行此命令composer dump-autoload后,出现以下错误。 However, before running this command, it was working fine.但是,在运行此命令之前,它运行良好。

Uncaught exception 'ReflectionException' with message 'Class 
App\Console\Kernel does not exist' in 
vendor/laravel/framework/src/Illuminate/Container/Container.php:719

Check the path: /your_root/app/Console检查路径: /your_root/app/Console

See if you have Kernel.php file there.看看那里是否有Kernel.php文件。 This file registers all commands.该文件注册所有命令。

Maybe somehow you have deleted the file and thats why you are getting the error.也许您以某种方式删除了文件,这就是您收到错误的原因。

I had the file in my app\\Console folder, but I got this message after all artisan and composer commands.我的 app\\Console 文件夹中有该文件,但是在执行完所有 artisan 和 composer 命令后我收到了这条消息。 I solved it by creating a new kernel.php file, copying all the content from the original file.我通过创建一个新的 kernel.php 文件来解决它,从原始文件中复制所有内容。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Laravel错误未捕获异常'ReflectionException',消息'Class App \ Http \ Kernel不存在' - Laravel error Uncaught exception 'ReflectionException' with message 'Class App\Http\Kernel does not exist' Laravel错误:未捕获的ReflectionException:类App \\ Http \\ Kernel不存在 - Laravel Error : Uncaught ReflectionException: Class App\Http\Kernel does not exist 消息“类XXX不存在”的教义未捕获的异常“ Re​​flectionException” - Doctrine Uncaught exception 'ReflectionException' with message 'Class XXX does not exist' 如何使用消息“类日志不存在”修复未捕获的异常“ Re​​flectionException”? - How to fix Uncaught exception 'ReflectionException' with message 'Class log does not exist'? Laravel:致命错误:未捕获反射异常:Class App\Http\Kernel 不存在 - Laravel : Fatal error: Uncaught ReflectionException: Class App\Http\Kernel does not exist Laravel 5.1.11致命错误:消息为“类日志不存在”的未捕获异常“ Re​​flectionException” - Laravel 5.1.11 Fatal error: Uncaught exception 'ReflectionException' with message 'Class log does not exist' 消息“ xx \\ xxxx \\ xxx不存在”的未捕获异常“ Re​​flectionException” - Uncaught exception 'ReflectionException' with message 'xx\xxxx\xxx does not exist' in Laravel 错误 'ReflectionException' - 'Class App\\Http\\Kernel 不存在' - Laravel error 'ReflectionException' - 'Class App\Http\Kernel does not exist' 未捕获的ReflectionException:在/project/vendor/laravel/framework/src/Illuminate/Container/Container.php:721中不存在App \\ Http \\ Kernel类 - Uncaught ReflectionException: Class App\Http\Kernel does not exist in /project/vendor/laravel/framework/src/Illuminate/Container/Container.php:721 在vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php 中未捕获的异常“ReflectionException”和消息“类配置不存在” - Uncaught exception 'ReflectionException' with message 'Class config does not exist' in vendor\laravel\framework\src\Illuminate\Container\Container.php
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM