
Fix the Bug
最新 WordPress 版本 3.0 正式版近期发布。自动更新过后,原有插件、主题基本适应,兼容性还好。WP3的新特性还在慢慢体会中。
这里列出两个升级3.0可能会遇到的小问题以及解决办法。
1、一个部分主题可能会遇到的小问题
在以前WP版本中,各主题作者可能习惯于使用 $tableposts(文章数据库表名称) 和 $tablecomments(评论数据库表名称) 两个全局变量来SQL查询数据库。新版本中不再有这两者的定义。因此部分主题中会出现文章列表、评论列表为空的现象。我目前再用的主题 Lifedit 就有这个问题。
其实这不是个新问题,在WPMU中也是没有 $tableposts 和 $tablecomments 的定义的,有尝试过将WP主题应用到WPMU的早就遇到过这个问题,当然解决方法也早就出来了:
$tableposts ==> $wpdb.posts
$tablecomments ==> $wpdb.comments
用右侧的替换掉原来的两个就可以了,$wpdb 是一直存在的定义。
Read the rest of this entry »
< Bug,Editor,tinymce,Wordpress,wp3 >

You, Spamer, are Banned!
推荐一个插件WP-Ban,用来禁止垃圾评论,多种方式阻隔spam robots的骚扰:
Ban users by IP, IP Range, host name, user agent and referer url from visiting your WordPress’s blog. It will display a custom ban message when the banned IP, IP range, host name, user agent or referer url tries to visit you blog. You can also exclude certain IPs from being banned. There will be statistics recordered on how many times they attemp to visit your blog. It allows wildcard matching too.
当打开WP后台,Akismet拦截到垃圾评论,我一般就直接把ip加到禁止访问列表了,所以我的列表有这么长:
Read the rest of this entry »
< Plugin,Spam,Wordpress,WP-Ban >
最近想自动升级WP,总是出现超时错误。之前升级2.8.3的时候很顺利的。估计跟那个损坏的海底光缆路由有关,国内主机访问国外服务器变慢。
错误信息为
Downloading update from http://wordpress.org/wordpress-2.8.4.zip
Download failed.: Operation timed out after 60000 milliseconds with 1351500 bytes received
Installation Failed
明显是速度慢、没有下载完的原因。
百度到的解决方案:
WordPress自动升级超时 解决方案
我尝试过了,不需要更改php.ini,只改file.php就可以了,而且不受php.ini的配置时间限制。
2.8.3默认是60秒超时,我改到500才成功升级。
< Autoupdata,Timeout,Wordpress >
Comments