Fatal error: Uncaught Error: Call to undefined method ::newInstanceArgs() in E:\php\wamp64\www\nongyao001\vendor\yiisoft\yii2\di\Container.php:381 Stack trace: #0 E:\php\wamp64\www\nongyao001\vendor\yiisoft\yii2\di\Container.php(156): yii\di\Container->build('yii\\web\\ErrorHa...', Array, Array) #1 E:\php\wamp64\www\nongyao001\vendor\yiisoft\yii2\BaseYii.php(349): yii\di\Container->get('yii\\web\\ErrorHa...', Array, Array) #2 E:\php\wamp64\www\nongyao001\vendor\yiisoft\yii2\di\ServiceLocator.php(137): yii\BaseYii::createObject(Array) #3 E:\php\wamp64\www\nongyao001\vendor\yiisoft\yii2\base\Module.php(724): yii\di\ServiceLocator->get('errorHandler', true) #4 E:\php\wamp64\www\nongyao001\vendor\yiisoft\yii2\web\Application.php(151): yii\base\Module->get('errorHandler') #5 E:\php\wamp64\www\nongyao001\vendor\yiisoft\yii2\base\Application.php(347): yii\web\Application->getErrorHandler() #6 E:\php\wamp64\www\nongyao001\vendor\yiisoft\yii2\base\Application.php(204): yii\base\Application->registerErrorHandler(Array) #7 E:\php\w in E:\php\wamp64\www\nongyao001\vendor\yiisoft\yii2\di\Container.php on line 381