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

[Bug]Typecho 1.2 Support #3

Closed
XenWayne opened this issue Feb 10, 2022 · 2 comments
Closed

[Bug]Typecho 1.2 Support #3

XenWayne opened this issue Feb 10, 2022 · 2 comments

Comments

@XenWayne
Copy link
Contributor

Typecho 1.2 rc.2
默认主题没有问题
切换到butterfly后报错Error establishing a database connection
开启debug后报错如下

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'views' in 'field list'
Typecho\Db\Adapter\SQLException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'views' in 'field list' in /www/wwwroot/beta.xenwayne.top/var/Typecho/Db/Adapter/Pdo.php:111
Stack trace:
#0 /www/wwwroot/beta.xenwayne.top/var/Typecho/Db.php(391): Typecho\Db\Adapter\Pdo->query()
#1 /www/wwwroot/beta.xenwayne.top/var/Typecho/Db.php(424): Typecho\Db->query()
#2 /www/wwwroot/beta.xenwayne.top/usr/themes/butterfly/functions.php(1320): Typecho\Db->fetchAll()
#3 /www/wwwroot/beta.xenwayne.top/usr/themes/butterfly/sidebar.php(210): theAllViews()
#4 /www/wwwroot/beta.xenwayne.top/var/Widget/Archive.php(1333): require('/www/wwwroot/be...')
#5 /www/wwwroot/beta.xenwayne.top/usr/themes/butterfly/index.php(104): Widget\Archive->need()
#6 /www/wwwroot/beta.xenwayne.top/var/Widget/Archive.php(1415): require_once('/www/wwwroot/be...')
#7 /www/wwwroot/beta.xenwayne.top/var/Typecho/Router.php(99): Widget\Archive->render()
#8 /www/wwwroot/beta.xenwayne.top/index.php(23): Typecho\Router::dispatch()
#9 {main}

sample: https://beta.xenwayne.top
在得到reply前我会保留此站点。

@XenWayne
Copy link
Contributor Author

Update:
很神奇(
开一次debug再关掉之后就一切正常了
离谱
在您主题评论区也看见过类似的情况

@wehaox
Copy link
Owner

wehaox commented Feb 10, 2022

确实很神奇😂,不过终于有人提供完整的debug信息了,之后我会尝试修复此bug,谢谢你提供的反馈

@wehaox wehaox closed this as completed Feb 22, 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

2 participants