test

随意更换了个个主题,测试下WordPress发布blog时是否依旧有以下问题:
Warning: shell_exec() has been disabled for security reasons in /home/template/sandliu.me/wp-content/plugins/wp-time-machine/includes/wpTimeMachineCore.php on line 1144

Warning: Cannot modify header information – headers already sent by (output started at /home/template/sandliu.me/wp-content/plugins/wp-time-machine/includes/wpTimeMachineCore.php:1144) in /home/template/sandliu.me/wp-admin/post.php on line 197

Warning: Cannot modify header information – headers already sent by (output started at /home/template/sandliu.me/wp-content/plugins/wp-time-machine/includes/wpTimeMachineCore.php:1144) in /home/template/sandliu.me/wp-includes/pluggable.php on line 1171

wlw和WP的小矛盾

使用windows live writer离线发布WordPress原本是件挺快乐的事情。但是这二位时不时的会闹点小矛盾。

昨天准备把WordPress重新绑定到windows live writer的时候,总是如下的提示:

尝试连接 到您的日志时出错:

服务器响应无效 – 从日志服务器接收的对 blogger.getUsersBlogs 方法的响应无效:

Invalid response document returned from XmlRpc server

必须先纠正此错误才能继续操作。

原本以为是WordPress里的远程发布选项没有勾选。但是检查后,发现一 切正常。又一一排除了主题、插件等冲突因素,还是无法解决问题。这时只好祭出Google大神了,经过搜索后找到了正确的解决办法:

找到 class.ixr.php,这个文件位于wp-includes文件夹下,然后用一个文本编辑工具打开它,查找:

$length = strlen($xml);

改为:

$length = strlen($xml)+3;

到此,问题得到解决。至于 出现这个问题的原因,就让大神们去解释,我等小菜鸟也就不深究了。(据说是utf-8编码的问题,xml-rpc返回的格式不正确,缺了三个字节。)

感谢国家、感谢党、感谢 Google大神,俺的离线更新又正常了。……-_-!!!