简体   繁体   English

Laravel 未捕获异常 'ReflectionException

[英]Laravel Uncaught exception 'ReflectionException

Im getting an error when trying to launch a Laravel App .尝试启动 Laravel 应用程序时出现错误。

 Fatal error: Uncaught exception 'ReflectionException' with message 'Class log does not exist' in C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Container\Container.php:735

I have checked the .env file for spaces and found none.我检查了 .env 文件中的空格,但没有找到。 I also replaced each file in the config folder in a attempt to find out which one would throw the error.我还替换了 config 文件夹中的每个文件,试图找出哪个文件会引发错误。 I also tried doing a dump just the mentioned line我也尝试只在提到的行中进行转储

dump($concrete, debug_backtrace());

I have also tried running composer dump-autoload and composer dump-autoload -o which promted me to put the composer.json file into the config directory Then when ran again threw the error stating "Could not scan for classes inside database which does not appear to be a file nor a folder".我也试过运行 composer dump-autoload 和 composer dump-autoload -o 这促使我将 composer.json 文件放入配置目录然后再​​次运行时抛出错误,指出“无法扫描未出现的数据库中的类成为文件或文件夹”。

How can a isolate and sort this issue out ?如何隔离和解决这个问题?

do:做:

$  composer dump-autoload -o

and try again然后再试一次

暂无
暂无

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

相关问题 致命错误:未捕获的异常'ReflectionException' - Fatal error: Uncaught exception 'ReflectionException' Laravel 5.1.11致命错误:消息为“类日志不存在”的未捕获异常“ Re​​flectionException” - Laravel 5.1.11 Fatal error: Uncaught exception 'ReflectionException' with message 'Class log does not exist' Laravel错误未捕获异常'ReflectionException',消息'Class App \ Http \ Kernel不存在' - Laravel error Uncaught exception 'ReflectionException' with message 'Class App\Http\Kernel does not exist' 在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 未捕获的异常'ReflectionException',消息'无法设置只读属性ezcReflectionClass :: $ class' - Uncaught exception 'ReflectionException' with message 'Cannot set readonly property ezcReflectionClass::$class' 消息“类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'? 消息“ xx \\ xxxx \\ xxx不存在”的未捕获异常“ Re​​flectionException” - Uncaught exception 'ReflectionException' with message 'xx\xxxx\xxx does not exist' in 未捕获的异常 'ReflectionException' 带有消息 'Class App\\Console\\Kernel does not exist' - Uncaught exception 'ReflectionException' with message 'Class App\Console\Kernel does not exist' Laravel-未捕获的ReflectionException:类日志不存在-配置错误 - Laravel - Uncaught ReflectionException: Class log does not exist - Config error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM