CommentPush icon indicating copy to clipboard operation
CommentPush copied to clipboard

ty1.2突然就报错了

Open xyzbz opened this issue 3 years ago • 1 comments

报错内容 邮件服务应该是兼容性有问题 serv酱没问题 Argument 1passed to Typecho\Widget::__construct()must bean instance of Typecho\Widget\Request,instance of Typecho\Request given,called in /www/wwwroot/typecho/usr/plugins/pluginsCommentPush/lib/SmtpService.php on line 171

xyzbz avatar May 03 '22 14:05 xyzbz

修改AliYunEmailService.php和SmtpService.php 把 widget = new $className(Typecho_Request::getInstance(), Typecho_Widget_Helper_Empty::getInstance()); 换成 $widget = $className::alloc();

教程来源https://blog.tsutsu.one/archives/350/

jiajiechan avatar Jul 04 '22 01:07 jiajiechan