正在加载...
Some Day Some Where

Archive for the ‘Wordpress’ Tag

Reupload wordpress files to solve live writer connection problem

Dec 9th, 2007 at 15:08 Posted in 部落格//Be Blogger, Tagged: , | 1 Comment »

When WLW(2008version) connecting to wordpress 2.3.1, it returned this error:

尝试连接到日志时出错:
服务器响应无效-从日志服务器接收的对blogger.getUsersBlogs方法的响应无效():
Invalid response documnet returned from XmlRpc server
必须先纠正此错误才能继续操作

the English version is:

Error connecting to weblog

An error occurred while attempting to connect to your weblog;
invalid server resonse -the response to the bloger.getuserblogs method received form weblog server was invalid;
Invalid response document returned from xmlrpc server
You must correct this error before proceeding

I spent 2 days to looking for the solution. modify the .htaccess file, remove the blank near closing tag, use the default theme and deactivate all plugins, all those action did not work at all. Before contacting with my blog’s host, I delated all the wordpress files on the ftp but didnot clear the database and reuploaded, and then succeed! of course backup before that.

btw: before solving the problem, I have used fiddler to see what happened, and it returned a mismatch error:

Content-Length mismatch: Response Header claimed 531 bytes, but server sent 2938 bytes.

I don’t know why.

正在使用的WordPress插件

Nov 20th, 2007 at 23:37 Posted in 部落格//Be Blogger, Tagged: , | No Comments »

fake files on wordpress.org

Oct 14th, 2007 at 14:23 Posted in 部落格//Be Blogger, Tagged: ,, | 2 Comments »

The fake files is about my dashboard 0.3.1version, and this is the download page on wordpress.org. After I saw the notification on the plugins mgmt page, I downloaded the plugin installation files, unzipped and uploaded to ftp, when I reactive this plugin, the missing “includes” folder made it fail.
Fortunately, the plugin’s home page offers the right files.

update: It has been fixed, so enjoy!

WordPress文章数量判断函数

Oct 12th, 2007 at 23:51 Posted in 部落格//Be Blogger, Tagged: , | 1 Comment »

不是代码男,所以有点小成果就容易小兴奋。

simple tags插件可以提供related posts功能,但是现在使用的主题其首页和单篇文章共用了index.php这个模板,目标是只在浏览单篇文章时显示related posts,如果只添加<?php st_related_posts(); ?>显然无法完全满足要求,因为无法在首页控制它不显示出来。

在常去的几个技术blog中没有找到解决办法,无意在桑林志中看到了一些信息,又结合wordpress中文文档,终于得到如下代码:

<?php if ($single) {st_related_posts();} else {} ?>

加到index.php中,解决之。

WordPress2.3升级成功

Sep 25th, 2007 at 10:45 Posted in 部落格//Be Blogger, Tagged: , | No Comments »

官方的schedule是定于24日星期一发布2.3正式版的,昨晚等到00:00也不见动静。刚在twitter上发完wp跳票的小牢骚,refresh了一下页面就看到了2.3的字样。

升级过程中出了点小麻烦,后来乖乖访问http://example.com/wordpress/wp-admin/upgrade.php才成功打开页面。

不过新麻烦出现了:就在写这篇post的时候,自动保存时出现:

WordPress database error: [Table 'dbname.wp_post2cat' doesn't exist]
SELECT cat_ID AS ID, MAX(post_modified) AS last_mod FROM `wp_posts` p LEFT JOIN `wp_post2cat` pc ON p.ID = pc.post_id LEFT JOIN `wp_categories` c ON pc.category_id = c.cat_ID WHERE post_status = ‘publish’ GROUP BY cat_ID

先将就着罢

update: 上述错误的出现是由于Google Sitemap Generator的问题,禁用之后正常了(已更新到新版本)。——开始没有禁用插件,是以清空数据库为代价才发现的,还好备份能够恢复。

wp升级成功

Jul 12th, 2007 at 0:07 Posted in 部落格//Be Blogger, Tagged: | No Comments »

看到各种关于Movable Typ新版本的评论,再次手痒痒准备安装一下看看。在出现500 internet server error错误解决未果后联系west263的客服,检查发现是由于所有者的错误而导致的。此问题解决后又发现数据库模块缺失,对方再次手到病除——也许是客服的技术实力参差不齐,最初计划以mt搭建blog失败时多次联系都未成功解决问题。

用惯了wordpress,对mt的印象还停留在2.xxx版简洁的后台页面上。都在说mt4是在模仿wordpress,倒不如说mt在追赶wordpress的时候丢掉了自己风格路线。movable type的发展甚至还要早于wordpress,虽然后来由于收费、非开源而导致的插件数量少、安装不如wp简单等原因影响了更大规模的普及,但mt仍然不乏众多拥趸(dun),企业用户方面,intel的官方blog就是用的MT enterprise。

我把mt4装好之后只是简单测试了一下,像很多人说的一样,dashboard有wp的痕迹,但实质操作上还是有很大差别,保留了原来mt的操作味道,每次使用publish功能发布的时候都额外有成就感。还有就是似乎比wp提前支持了自带tag。可能是还不习惯的原因,dashboard的各功能菜单还不是很顺手,另外theme(style)的更换比较烦琐,自带的插件容易出现目录权限的错误。

如果同时用WP和MT分别照顾两个blog总觉得难以取舍,而且想不出分别写什么,更重要的是懒得再去研究mt的主题更换了(但还是十分喜欢多数MT blog的简洁风格),所以放弃了再同时用MT的念头。删掉文件,清理数据库之后,忽然想起这次西部数码帮忙重新配置了数据库的相关模块,可能上次升级WP时出现的错误不会再出现了。重新下载wp2.2.1,上传,upgrade,成功!一个差点想起来就让我产生放弃wp念头的麻烦终于解决了。因为要安装mt反而解决了wp的升级问题,真是歪打正着,十分感谢这个西部数码的技术支持,虽然是在QQ上联系的,但是效率还是比较高,尽管后来再提出的小问题没有回应,不过自己都感觉问得没完没了,所以已经可以理解了:D

另外现在已经亲自验证了西部数码的主机能够支持Wordpress和Movable Type,技术支持也不错,是很好的选择。

WordPress 2.2′s BUG in riichiie.net

May 17th, 2007 at 13:27 Posted in 部落格//Be Blogger, Tagged: , | No Comments »

  1. 在页面和分类中各有一个叫做ARRAY的不速之客,但是在后台管理中看不到,手工添加删除的方法不起作用。
  2. Array还在post password, Post slug, Send trackbacks to: 等等处被默认填写。
  3. 后台管理页面中的Users选项卡中的Authors & Users字选项卡有误:Fatal error: Unsupported operand types in /wp-admin/users.php on line 55
  4. 2个默认主题的侧栏显示出错(看来MK的这个主题很有前瞻性)

昨晚是从2.1.3升级过来的,原以为是升级的错误,今天重新安装一次依旧。服务器的软件版本也完全支持latest version,有可能问题处在数据库上面。
由于WP2.2刚发布不久,在网上还没有查到相关的资料。// wordpress官网的论坛里已经有人提问,但没有solved

本来是想姑且将就着,没想到这篇只能以draft保存,居然不能publish,点击Publish或者修改Post Status都无效,索性改回2.1.3了!

update: 7月份的时候,wordpress support forum上有个叫做seventh的人贴出了解决问题的办法

Try edit /wp-includes/plugin.php [Line : 102], inside remove_filter function.
Change :
unset($GLOBALS['wp_filter'][$tag][$priority][serialize($function_to_remove)]);

To :

$wp_filter[$tag][$priority][serialize($function_to_remove)] = array();

unset( $wp_filter[$tag][$priority][serialize($function_to_remove)] );

3/41234