PHP8.2版本下Flarum测试邮件报错的解决方案」的摘要信息

情景 在PHP8.2版本环境下能顺利搭建Flarum1.8.5,但在后台配置SMTP发信,发送测试邮件时,会提示:“糟糕,出错啦,请刷新页面重试。” 有关于Flarum的搭建参照:宝塔面板(aaPanel)搭建Flarum 检查网页端控制台,错误如下: 检查PHP日志,错误如下: 2024/06/10 11:51:34 [error] 25932#0: *24187 FastCGI sent in stderr: " PHP message: PHP Deprecated: Callables of the form ["Swift_SmtpTransport", "Swift_Transport_EsmtpTransport::__construct"] are deprecated in /www/wwwroot/wadao.net/vendor/swiftmailer/swiftmailer/lib/classes/Swift/SmtpTransport.php on line 36; PHP message: PHP Deprecated: Callables of the form ["Swift_Message", " Swift_Mime_SimpleMessage::__construct"] are deprecated in /www/wwwroot/wadao.net/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Message.php on line 46; PHP message: PHP Fatal error: Uncaught Laminas\HttpHandlerRunner\Exception\EmitterException: Output has been emitted pr...