Skip to content


Popularity Contest 在 WordPress 2.5 下的临时解决办法

WordPress 2.5 正式版已经放出,这两天一大堆的插件正在赶着升级以增强对 WordPress 2.5 的兼容性。

Popularity Contest 目前的最新版是 1.3 beta3,暂时还没有兼容 WordPress 2.5的新版。许多朋友在升级到 WordPress 2.5之后发现根本无法启用 Popularity Contest。刚发现一个workaround,应急使用。

编辑popularity-contest.php,跳至第59行,将:

  1. require('../../wp-blog-header.php');

改成:

  1. require('../wp-blog-header.php');

即可在 WordPress 2.5 下激活并正常使用。

@Update:
Popularity Contest 的 SVN Repository 已更新,解决了 WordPress 2.5 下的兼容问题,目前版本为 1.3b4。

Popularity: 28% [?]

相关日志:

Posted in 电脑网络. Tagged with , .

11 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. tsian said

    还是不行,启动的时候致命错误。

  2. Leo said

    @tsian:

    请确认你自己改得正确。我和朋友都是用这个办法来解决问题的。

  3. tsian said

    照着拷贝怎么会错,而且不就是引用文件的路径改变么。。。

    不知道为什么我还是不行,好在我备份了2.3.2的文件,恢复回去安装了这个插件,升级,然后把数据库倒回来。

    有点波折,但能用了。

  4. Leo said

    @tsian:

    原来是全新安装,数据库里没有 Popularity Contest 两张表吧?这样确实不行,因为创建表会失败,除非以前使用过它,数据库里已经有表。

  5. 启动后在查看浏览量页面出现大量如下错误,不知何故?
    Warning: Division by zero in /home/bxr57917/public_html/wp-content/plugins/popularity-contest.php on line 1273

    wp:2.5.1
    插件版本:popularity-contest.1.3b4

  6. Leo said

    @lastwest:
    这一句是:

    return ceil(($total/$this->top_rank()) * 100).'%';

    所以,把你的ak_popularity这张表备份后清空,再观察有没有这个问题。

    PS:吉他教程翻译得挺好的,想发评论发现你不让评论,呵呵,只好在这里回应了。我是吉他初学者,不到一年的琴龄。

  7. mz said

    MD,正在搞Popularity Contest,搜来你这里来了,就说看着眼熟眼熟的。

  8. 感谢!很久没注意这个插件,禁用后激活不了,谢谢你提醒使用b4。

  9. Leo said

    @北极冰仔:

    不客气,冰仔兄弟光临,荣幸之至。:)

Continuing the Discussion

  1. 成功升级到wordpress 2.5 | 软件生活 linked to this post on 2008-04-02

    [...] Contest的问题修复了,现在能够在2.5下正常运行了!感谢Leo和他的这篇文章。 Popularity: 30% cT="0";nc="#444444";nBgc="#FFF7DE";nBorder="#F5E5A9"; [...]

  2. 解决Blog一些小问题和调整一下侧边栏 | 软件生活 linked to this post on 2008-04-20

    [...] 首先是很多插件不能用,最明显的是Popularity Contest不能启动,我通过这篇文章已经成功解决了,现在运行良好。 [...]

Some HTML is OK

(never shared)

or, reply to this post via trackback.


SEO Powered by Platinum SEO from Techblissonline