在使用Stat插件时,发现代码中存在一个小BUG,是对Columns not found的判断有问题,原代码写的是: 'Mysql'?==?$type??1051?==?$code?? 但事实上,如果你使用的是PDO,$code 还应该加上 42S22,所以上述代码就应该改成这样了 ('Mysql'?==?$type??(1054?==?$c
在使用Stat插件时,发现代码中存在一个小BUG,是对Columns not found的判断有问题,原代码写的是:
'Mysql'?==?$type?&&?1051?==?$code??
但事实上,如果你使用的是PDO,$code 还应该加上 42S22,所以上述代码就应该改成这样了
('Mysql'?==?$type?&&?(1054?==?$code?||?$code?==?'42S22'))??
然后就可以安装成功了。
该插件的信息是:
/**?? ?*?页面浏览次数统计插件?? ?*?@package????Stat?? ?*?@author?????Hanny?? ?*?@version????1.0.2?? ?*?@dependence?10.8.15-*?? ?*?@link???????http://www.imhan.com?? ?*?历史版本?? ?*?version?1.0.2?at?2010-07-03?? ?*?终于支持前台调用了?? ?*?接口支持Typecho?0.8的计数?? ?*?增加SQLite的支持?? ?*?version?1.0.1?at?2010-01-02?? ?*?修改安装出错处理?? ?*?修改安装时默认值错误?? ?*?version?1.0.0?at?2009-12-12?? ?*?实现浏览次数统计的基本功能?? ?? ?*/??
不过由于这个版本比较早,就将就一下啦
原文地址:typecho Stat 插件的小BUG, 感谢原作者分享。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SublimeText3 Chinese version
Chinese version, very easy to use
