Typecho 1.2 CommentPush 解决方案
[tip type="info"]
使用插件Player626/CommentPush
[/tip]
1. 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();
禁用后重新启用即可~
2. 提示"必须选择一项推送服务"
参考一份CommentPush的PR
将128行的'services'
修改为[]
// 第128行
], 'services', _t('推送服务 多选同时推送'), _t('插件作者:<a href="https://blog.gaobinzhan.com">高彬展</a> <a href="https://blog.say521.cn/">奥秘Sir</a>'));
改为
// 第128行
], [], _t('推送服务 多选同时推送'), _t('插件作者:<a href="https://blog.gaobinzhan.com">高彬展</a> <a href="https://blog.say521.cn/">奥秘Sir</a>'));
当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »