惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - Franky
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Schneier on Security
Know Your Adversary
Know Your Adversary
Security Latest
Security Latest
Spread Privacy
Spread Privacy
Project Zero
Project Zero
T
The Exploit Database - CXSecurity.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
AI
AI
N
News | PayPal Newsroom
A
Arctic Wolf
NISL@THU
NISL@THU
W
WeLiveSecurity
Security Archives - TechRepublic
Security Archives - TechRepublic
Hacker News: Ask HN
Hacker News: Ask HN
P
Palo Alto Networks Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
大猫的无限游戏
大猫的无限游戏
L
Lohrmann on Cybersecurity
Last Week in AI
Last Week in AI
T
Threatpost
The Last Watchdog
The Last Watchdog
博客园_首页
C
Cybersecurity and Infrastructure Security Agency CISA
酷 壳 – CoolShell
酷 壳 – CoolShell
量子位
Engineering at Meta
Engineering at Meta
爱范儿
爱范儿
aimingoo的专栏
aimingoo的专栏
S
Security Affairs
P
Privacy & Cybersecurity Law Blog
B
Blog RSS Feed
AWS News Blog
AWS News Blog
P
Proofpoint News Feed
雷峰网
雷峰网
T
Tenable Blog
Schneier on Security
Schneier on Security
H
Heimdal Security Blog
V2EX - 技术
V2EX - 技术
V
V2EX
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
Secure Thoughts
Latest news
Latest news
Help Net Security
Help Net Security
Jina AI
Jina AI
Stack Overflow Blog
Stack Overflow Blog
The Cloudflare Blog
V
Vulnerabilities – Threatpost
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org

飞絮落叶雪 - 插件

Typecho 几个小插件分享 WordPress 新主题 Weisay Grace 您的邮箱被管理员屏蔽无法评论 添加UserAgent for typecho插件 wordpress用插件实现go链接跳转
typecho无法启用页面浏览次数统计插件(stat)的解决办法
Mr.He · 2015-08-25 · via 飞絮落叶雪 - 插件

这几天无聊,折腾sae,尝试各种博客程序的使用方法,在折腾到typecho时出现了问题,上传stat插件时无法启用,提示"stat数据表检测失败,统计插件启用失败。错误号:0",从网上了搜索都没有得到结果,就自己来研究,居然成功了,下面把方法共享出来:

分析原因:

既然是数据表出错,那应该是sql出问题了,也许是typecho在升级到1.0的时候修改了数据表结构(猜测),导致插件无法启用。查看该插件源码,有这么一句:

$db->query("ALTER TABLE ".$prefix."contents ADD views INT( 10 ) NOT NULL  DEFAULT '0' COMMENT '页面浏览次数';");

在启用时添加一个字段,结果失败。

解决思路:

找到了原因,我们就手动在contents上添加一个字段,那就ok,结果证明我的方法是正确的。

操作过程:

1.打开phpadmin,找到contents这一行,点击结构,如图红框处。

2.点击下面的添加字段,如图红框处,点击执行:

3、如图填写相关字段,注意红框处一定要勾上,点执行。

4.回到typecho后台,页面浏览次数统计插件就能够启用了,很简单吧。