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

推荐订阅源

美团技术团队
D
DataBreaches.Net
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
Docker
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
Check Point Blog
腾讯CDC
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
IT之家
IT之家
月光博客
月光博客
U
Unit 42
K
Kaspersky official blog
T
Threatpost
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
GbyAI
GbyAI
P
Proofpoint News Feed
Last Week in AI
Last Week in AI
云风的 BLOG
云风的 BLOG
酷 壳 – CoolShell
酷 壳 – CoolShell
I
InfoQ
Engineering at Meta
Engineering at Meta
Recorded Future
Recorded Future
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Security @ Cisco Blogs
MyScale Blog
MyScale Blog
大猫的无限游戏
大猫的无限游戏
Security Archives - TechRepublic
Security Archives - TechRepublic
Webroot Blog
Webroot Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Hacker News - Newest:
Hacker News - Newest: "LLM"
S
Schneier on Security
S
Secure Thoughts
The Register - Security
The Register - Security
B
Blog RSS Feed
The Last Watchdog
The Last Watchdog
P
Palo Alto Networks Blog
爱范儿
爱范儿
B
Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
N
News and Events Feed by Topic
阮一峰的网络日志
阮一峰的网络日志
L
LINUX DO - 热门话题
C
Cisco Blogs
Spread Privacy
Spread Privacy
F
Full Disclosure
博客园 - 聂微东
T
The Blog of Author Tim Ferriss

飞絮落叶雪 - 插件

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后台,页面浏览次数统计插件就能够启用了,很简单吧。