为了账号安全,请及时绑定邮箱和手机立即绑定

老师你好,注册成功之后报Setting unknown property: yii\mail\MailEvent::messages这个错误

yii\base\UnknownPropertyException: Setting unknown property: yii\mail\MailEvent::messages in D:\project\advanced\vendor\yiisoft\yii2\base\BaseObject.php:163

Stack trace:

#0 D:\project\advanced\vendor\yiisoft\yii2\BaseYii.php(558): yii\base\BaseObject->__set('messages', Object(yii\swiftmailer\Message))

#1 D:\project\advanced\vendor\yiisoft\yii2\base\BaseObject.php(107): yii\BaseYii::configure(Object(yii\mail\MailEvent), Array)

#2 D:\project\advanced\vendor\yiisoft\yii2\mail\BaseMailer.php(380): yii\base\BaseObject->__construct(Array)

#3 D:\project\advanced\vendor\yiisoft\yii2\mail\BaseMailer.php(250): yii\mail\BaseMailer->beforeSend(Object(yii\swiftmailer\Message))

#4 D:\project\advanced\vendor\yiisoft\yii2\mail\BaseMessage.php(49): yii\mail\BaseMailer->send(Object(yii\swiftmailer\Message))

#5 D:\project\advanced\frontend\models\SignupForm.php(77): yii\mail\BaseMessage->send()

#6 D:\project\advanced\frontend\models\SignupForm.php(57): frontend\models\SignupForm->sendEmail(Object(common\models\User))

#7 D:\project\advanced\frontend\controllers\SiteController.php(156): frontend\models\SignupForm->signup()

#8 [internal function]: frontend\controllers\SiteController->actionSignup()

#9 D:\project\advanced\vendor\yiisoft\yii2\base\InlineAction.php(57): call_user_func_array(Array, Array)

#10 D:\project\advanced\vendor\yiisoft\yii2\base\Controller.php(157): yii\base\InlineAction->runWithParams(Array)

#11 D:\project\advanced\vendor\yiisoft\yii2\base\Module.php(528): yii\base\Controller->runAction('signup', Array)

#12 D:\project\advanced\vendor\yiisoft\yii2\web\Application.php(103): yii\base\Module->runAction('site/signup', Array)

#13 D:\project\advanced\vendor\yiisoft\yii2\base\Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request))

#14 D:\project\advanced\frontend\web\index.php(17): yii\base\Application->run()

#15 {main}


正在回答

举报

0/150
提交
取消
PHP之Yii2框架搭建完整博客系统
  • 参与学习       22594    人
  • 解答问题       279    个

Yii是PHP快速开发的最佳实践之一,一起领略yii2快速开发的风采

进入课程

老师你好,注册成功之后报Setting unknown property: yii\mail\MailEvent::messages这个错误

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信