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

Typecho 1.3.0 版本不兼容 #62

Open
vndroid opened this issue Apr 19, 2024 · 5 comments
Open

Typecho 1.3.0 版本不兼容 #62

vndroid opened this issue Apr 19, 2024 · 5 comments

Comments

@vndroid
Copy link

vndroid commented Apr 19, 2024

大量类似以下的报错

NOTICE: PHP message: PHP Notice:  unserialize(): Error at offset 0 of 72 bytes

具体参考 commit

@chakhsu
Copy link
Owner

chakhsu commented Apr 19, 2024

这几天看看。

@chakhsu
Copy link
Owner

chakhsu commented Apr 24, 2024

我这边测试正常,估计是你这边环境没配置好。你看一下这个链接能不能帮到你:link

@vndroid
Copy link
Author

vndroid commented Apr 26, 2024

是在最新的主分支上进行测试的嘛?我看其他群里也有反馈老版本的主题无法使用,具体是类似:

<?php if (array_key_exists('archive', unserialize($this->___fields()))): ?>

在 1.3.0 上已经变成 JSON 格式,需要改成类似:

<?php if($this->fields->archive()): ?>

以下是搜到现存的相关代码:点击跳转

@chakhsu
Copy link
Owner

chakhsu commented Apr 26, 2024

ok,感谢提供详细的信息,因为 typecho 1.3.0 还没正式发版,这个改动也会涉及到旧 te 的兼容问题,我这边估计会发一个 alpha 版跟 typecho 1.3 同步兼容。

@chakhsu
Copy link
Owner

chakhsu commented Apr 27, 2024

看看最新v1.6.2有没有解决你的问题。

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

2 participants