Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Break on typecho 1.2.0 #6

Open
KawaiiZapic opened this issue Jun 16, 2022 · 3 comments
Open

Break on typecho 1.2.0 #6

KawaiiZapic opened this issue Jun 16, 2022 · 3 comments

Comments

@KawaiiZapic
Copy link

升级到1.2.0后, 重建索引和发布文章时会报错

Argument 1 passed to Typecho\Widget::__construct() must be an instance of Typecho\Widget\Request, instance of Typecho\Request given, called in /***/usr/plugins/ExSearch/Plugin.php on line 280
@zjmitxwz
Copy link

zjmitxwz commented Jun 17, 2022

G这个主题作者自己修改的版本可以

@hyl-xidian
Copy link

@KawaiiZapic Hi

参照这个issue下的评论

Plugin.php中276行的

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

修改为$widget = $className::alloc();即可解决问题

也不知道这么长时间过去了,还能不能帮到你,祝好!

@Critts
Copy link

Critts commented Dec 10, 2022

我也遇到这个问题,找了好久解决办法,终于用你的解决了。谢谢你!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants