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

在打开后台时候出现获取官方日志和最新版本错误 #1604

Closed
saga0324 opened this issue Jul 13, 2023 · 5 comments · Fixed by #1605
Closed

在打开后台时候出现获取官方日志和最新版本错误 #1604

saga0324 opened this issue Jul 13, 2023 · 5 comments · Fixed by #1605

Comments

@saga0324
Copy link

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

在打开后台时候出现获取官方日志和最新版本错误

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

可以正常获取到日志和更新版本,但实际只能得到“读取中...”提示

3. 问题出现的环境

  • 操作系统版本:Alpine Linux v3.18.2
  • Apache/NGINX 版本:1.24.0
  • 数据库版本:SQLite 3.41.2
  • PHP 版本:8.2.8
  • Typecho 版本:1.2.1
  • 浏览器版本:Edge 114

image
如果打开DEBUG FEATURE则输出如图日志
直接访问ajax?do=checkVersion或者feed则会直接跳到首页
如果关闭DEBUG FEATURE则会提示403
image

@sy-records
Copy link
Member

当前访问者的权限不够,需要订阅者或编辑以上

@saga0324
Copy link
Author

当前访问者的权限不够,需要订阅者或编辑以上

是管理员权限,全新安装也是如图报错

@sy-records
Copy link
Member

php 没有curl 扩展吧

@saga0324
Copy link
Author

php 没有curl 扩展吧

感谢回复,的确是因为这个原因,自己编译的PHP裁剪过了头,没有留意到这个细节

@sy-records
Copy link
Member

看到这里发现的

return extension_loaded('curl') ? new static() : null;

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

Successfully merging a pull request may close this issue.

2 participants