欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

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
错误很明显啊