MENU

Typecho 1.2 无法邮件推送评论解决方案

June 1, 2022 • Read: 502 • 技术

Post 报错

Argument 1
passed 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

解决办法

CommentPush 的 /lib/SmtpService.php

widget = new $className(Typecho_Request::getInstance(), Typecho_Widget_Helper_Empty::getInstance());

改成

$widget = $className::alloc();

禁用后重新启用即可~

Last Modified: June 6, 2022
Archives QR Code Tip
QR Code for this page
Tipping QR Code
Leave a Comment

3 Comments
  1. 芭芭雅嘎 芭芭雅嘎     Windows 10 /    Google Chrome

    以前用typecho邮件评论也搞了我很久,最后还是解决了。

  2. vian vian     Windows 10 /    Google Chrome

    还是有一点问题
    插件设置时 选择过推送服务点击保存会提示“必须选择一项推送服务”实际上已经选择了 但是保存不上@(笑尿)

  3. linkkk linkkk     MacOS /    Safari

    学习