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

更新到最新的 Dev 版本后原加密文章无法正常加密 #1157

Closed
vndroid opened this issue Sep 9, 2021 · 6 comments
Closed

更新到最新的 Dev 版本后原加密文章无法正常加密 #1157

vndroid opened this issue Sep 9, 2021 · 6 comments
Labels
bug Something isn't working
Projects
Milestone

Comments

@vndroid
Copy link
Contributor

vndroid commented Sep 9, 2021

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

更新到 最新版

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

加密文章可以正常隐藏输入框,实际情况是文章变成非隐藏标题,可以正常点击进入,进入后刷新页面提示报错

Argument 1 passed to Widget\Security::getToken() must be of the type string, null given, called in /var/www/dynamic/usr/themes/pinghsu/comments.php on line 86

主题使用的是 Pinghsu

3. 问题出现的环境

  • 操作系统版本:Debian 11
  • Apache/NGINX 版本:1.20.1
  • 数据库版本:MariaDB 10.5
  • PHP 版本:7.4
  • Typecho 版本:#519e84e
  • 浏览器版本:Chrome 93
@joyqi joyqi added this to Needs triage in Bug Sep 9, 2021
@joyqi joyqi added the bug Something isn't working label Sep 9, 2021
@joyqi joyqi moved this from Needs triage to Low priority in Bug Sep 9, 2021
@joyqi joyqi closed this as completed in fa222ba Sep 9, 2021
Bug automation moved this from Low priority to Closed Sep 9, 2021
@joyqi
Copy link
Member

joyqi commented Sep 9, 2021

这个错误提示已经修复了,而无法加密可能是因为你登录了管理员账号

@vndroid
Copy link
Contributor Author

vndroid commented Sep 9, 2021

加密正常显示确实是用户的问题,但匿名用户访问时会跳转到错误页面,提示信息

Call to undefined method Typecho\Widget\Request::getUrlPrefix()

而非输入密码的界面。

@joyqi
Copy link
Member

joyqi commented Sep 9, 2021

这应该不是默认主题吧

@vndroid
Copy link
Contributor Author

vndroid commented Sep 9, 2021

这应该不是默认主题吧

不是,使用的是上述主题。

joyqi added a commit that referenced this issue Sep 9, 2021
@joyqi
Copy link
Member

joyqi commented Sep 9, 2021

我把这个方法暴露出来了,更新下再试试

@vndroid
Copy link
Contributor Author

vndroid commented Sep 9, 2021

已恢复正常。

@joyqi joyqi added this to the v1.2.0-beta.2 milestone Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Bug
Closed
Development

No branches or pull requests

2 participants