yii2报错
程序员文章站
2022-06-08 18:13:55
...
报错
An Error occurred while handling another error:
exception 'ReflectionException' with message 'Class app\components\View does not exist' in /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php:417
Stack trace:
#0 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php(417): ReflectionClass->__construct('app\components\...')
#1 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php(360): yii\di\Container->getDependencies('app\components\...')
#2 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php(153): yii\di\Container->build('app\components\...', Array, Array)
#3 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/BaseYii.php(344): yii\di\Container->get('app\components\...', Array, Array)
#4 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/ServiceLocator.php(133): yii\BaseYii::createObject(Array)
#5 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/base/Application.php(554): yii\di\ServiceLocator->get('view')
#6 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/web/ErrorHandler.php(241): yii\base\Application->getView()
#7 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/web/ErrorHandler.php(112): yii\web\ErrorHandler->renderFile('@yii/views/erro...', Array)
#8 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/base/ErrorHandler.php(109): yii\web\ErrorHandler->renderException(Object(ReflectionException))
#9 [internal function]: yii\base\ErrorHandler->handleException(Object(ReflectionException))
#10 {main}
Previous exception:
exception 'ReflectionException' with message 'Class app\components\View does not exist' in /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php:417
Stack trace:
#0 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php(417): ReflectionClass->__construct('app\components\...')
#1 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php(360): yii\di\Container->getDependencies('app\components\...')
#2 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php(153): yii\di\Container->build('app\components\...', Array, Array)
#3 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/BaseYii.php(344): yii\di\Container->get('app\components\...', Array, Array)
#4 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/ServiceLocator.php(133): yii\BaseYii::createObject(Array)
#5 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/base/Application.php(554): yii\di\ServiceLocator->get('view')
#6 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2-debug/Module.php(145): yii\base\Application->getView()
#7 [internal function]: yii\debug\Module->yii\debug\{closure}(Object(yii\base\Event))
#8 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/base/Component.php(541): call_user_func(Object(Closure), Object(yii\base\Event))
#9 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/base/Application.php(372): yii\base\Component->trigger('beforeRequest')
#10 /home/wwwroot/xxxxxx/web/index.php(12): yii\base\Application->run()
#11 {main}
回复内容:
报错
An Error occurred while handling another error:
exception 'ReflectionException' with message 'Class app\components\View does not exist' in /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php:417
Stack trace:
#0 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php(417): ReflectionClass->__construct('app\components\...')
#1 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php(360): yii\di\Container->getDependencies('app\components\...')
#2 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php(153): yii\di\Container->build('app\components\...', Array, Array)
#3 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/BaseYii.php(344): yii\di\Container->get('app\components\...', Array, Array)
#4 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/ServiceLocator.php(133): yii\BaseYii::createObject(Array)
#5 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/base/Application.php(554): yii\di\ServiceLocator->get('view')
#6 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/web/ErrorHandler.php(241): yii\base\Application->getView()
#7 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/web/ErrorHandler.php(112): yii\web\ErrorHandler->renderFile('@yii/views/erro...', Array)
#8 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/base/ErrorHandler.php(109): yii\web\ErrorHandler->renderException(Object(ReflectionException))
#9 [internal function]: yii\base\ErrorHandler->handleException(Object(ReflectionException))
#10 {main}
Previous exception:
exception 'ReflectionException' with message 'Class app\components\View does not exist' in /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php:417
Stack trace:
#0 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php(417): ReflectionClass->__construct('app\components\...')
#1 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php(360): yii\di\Container->getDependencies('app\components\...')
#2 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/Container.php(153): yii\di\Container->build('app\components\...', Array, Array)
#3 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/BaseYii.php(344): yii\di\Container->get('app\components\...', Array, Array)
#4 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/di/ServiceLocator.php(133): yii\BaseYii::createObject(Array)
#5 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/base/Application.php(554): yii\di\ServiceLocator->get('view')
#6 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2-debug/Module.php(145): yii\base\Application->getView()
#7 [internal function]: yii\debug\Module->yii\debug\{closure}(Object(yii\base\Event))
#8 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/base/Component.php(541): call_user_func(Object(Closure), Object(yii\base\Event))
#9 /home/wwwroot/xxxxxx/vendor/yiisoft/yii2/base/Application.php(372): yii\base\Component->trigger('beforeRequest')
#10 /home/wwwroot/xxxxxx/web/index.php(12): yii\base\Application->run()
#11 {main}
Class appcomponentsView does not exist
错误很明显啊
上一篇: 定时器任务
下一篇: 怎么劈开一组数字中的4与7
推荐阅读
-
IE浏览器报错出现“网页上有错误”提示的解决办法
-
运行asp.net程序 报错:磁盘空间不足
-
Android启动模拟器报错解决方法
-
android @override 报错解决方案
-
编译PHP报错configure error Cannot find libmysqlclient under usr的解决方法
-
Python运行报错UnicodeDecodeError的解决方法
-
SpringBoot启动报错Failed to determine a suitable driver class
-
android导入第三方jar包报错 如何正确导入jar包
-
PHP执行Curl时报错提示CURL ERROR: Recv failure: Connection reset by peer的解决方法
-
steam市场错误代码502怎么办 steam买游戏502报错解决攻略