Answer the question
In order to leave comments, you need to log in
What is yii2 complaining about?
I run cron and get this error:
root:/var/www/wokster/data/yii# php yii mail/fly
PHP Fatal error: Uncaught exception 'yii\base\UnknownPropertyException' with message 'Setting unknown property: yii\console\ ErrorHandler::errorAction' in /var/www/wokster/data/yii/vendor/yiisoft/yii2/base/Component.php:197
Stack trace:
#0 /var/www/wokster/data/yii/vendor/yiisoft/ yii2/BaseYii.php(518): yii\base\Component->__set('errorAction', 'mail/error')
#1 /var/www/wokster/data/yii/vendor/yiisoft/yii2/base/Object .php(105): yii\BaseYii::configure(Object(yii\console\ErrorHandler), Array)
#2 [internal function]: yii\base\Object->__construct(Array)
#3 /var/www/wokster/data/yii/vendor/yiisoft/yii2/di/Container.php(364): ReflectionClass->newInstanceArgs(Array)
#4 /var/www/wokster/data/yii/vendor/ yiisoft/yii2/di/Container.php(147): yii\di\Container->build('yii\console\Err...', Array, Array)
#5 /var/www/wokster/data/yii/ vendor/yiisoft/yii2/BaseYii.php(344): yii\di\Container->get('yii\console\Err...', Array, Array)
#6 /var/www/wokster/data/yii/ vendor/yiisoft/yii2/di/ServiceLocator.php(133): yii\BaseYii::createObject(Array)
#7 /var/w in /var/www/wokster/data/yii/vendor/yiisoft/yii2/base/ Component.php on line 197
What could be the reason?
Answer the question
In order to leave comments, you need to log in
I asked myself, I will answer.
The problem is, don't mess with common/config
'errorHandler' => [
'errorAction' => 'site/error',
],
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question