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

1.1 版本 Helper::widgetById() 方法报错 #831

Closed
AlanDecode opened this issue Jan 26, 2019 · 1 comment
Closed

1.1 版本 Helper::widgetById() 方法报错 #831

AlanDecode opened this issue Jan 26, 2019 · 1 comment

Comments

@AlanDecode
Copy link
Contributor

@AlanDecode AlanDecode commented Jan 26, 2019

1. 该问题的重现步骤是什么?

调用方法

$post = Helper::widgetById('contents', $cid);

后报错

Missing argument 1 for Widget_Abstract::__construct()

2. 你期待的结果是什么?实际看到的又是什么?

该方法应该返回一个对象,但是报错参数缺失。针对 1.1 版本是否有解决方案?

3. 问题出现的环境

Typecho 1.1,PHP 7.2。Typecho 1.2 开发版没有问题。

  • 操作系统版本:CentOS 7
  • Apache/NGINX 版本:
  • 数据库版本:
  • PHP 版本:7.2
  • Typecho 版本:1.1
  • 浏览器版本:
@AlanDecode
Copy link
Contributor Author

@AlanDecode AlanDecode commented Jan 26, 2019

暂时使用 5f3620e058 中的修复解决。

@AlanDecode AlanDecode closed this Jan 26, 2019
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

1 participant