WordPress Guy

WordPress Guy designs and develops WordPress themes and plugins. WordPress Guy teaches you WordPress stuff.

One of my favorite plugins is Alex King’s Popularity Contest. Unfortunately it doesn’t seem to work with the latest WordPress release 2.5, nor Wordpress 2.5.1.

Fixing Problem #1

By doing a little searching on WordPress.org Forums I found this post which explains how to fix the Fatal Error problem I’ve been getting. What you need to do is change the line 59 of the popularity-contest.php file from this:


to this:


Ok so, that fixed the fatal error problem, and those of you who had the plugin installed prior to updating to WordPress 2.5 shouldn’t have any other problems.

However, if you’re installing the plugin for the first time you might be getting another error ‘Table ‘database.wp_ak_popularity_options’ doesn’t exist on line: 124‘.

Fixing Problem #2

You can choose to create the database manually like Ken McGuire explains in this article.

That works, but it’s a little complicated, so I came up with my own solution.

All you need to do is open the ‘popularity-contest.php’ file go down to the line 1528 and change this:

if (isset($_GET['activate']) && $_GET['activate'] == 'true') {

for this:

if (isset($_GET['action']) && $_GET['action'] == 'activate') {

You can also download the modified plugin:

Popularity Contest for WordPress 2.5

That’s it, you shouldn’t have any other problems now. Enjoy!


As Marco pointed out, the solution to the first problem could fill your error_log with warning messages. To fix that change the “require(’../wp-blog-header.php’);” for:

Download the expert testking SY0-201 guide and testking 70-680 video demos to learn about wprdpress stuff. Become expert in wordpress using testking 642-813 WP tutorials.

Blog reactions


  • dyoonet
    May 17th, 2009 at 2:41 pm

    Worked like a charm. Thank you so much! You’re a lifesaver! :)

  • a.s.
    May 27th, 2009 at 4:19 pm

    Works perfectly, thanks a lot!

  • Rocky
    June 9th, 2009 at 1:30 pm

    This is very helpful post and now my plugin is working. Thankyou……….

  • June 12th, 2009 at 5:39 pm

    ... habe jetzt Popularity Contest in einer abgewandelten Version installiert, weil auch bei mir die Original-Version beim Aktivieren einen fatalen Fehler erzeugte. ...

  • ... Popularity contest plugin and WordPress 2.5 (WordPress Guy) ...

  • September 30th, 2009 at 11:09 pm

    ... can hook folks searching out there for your content. Alex-King’s Popularity Contest Update: WPGuy offers solution for this plugin’s error msg. Use the feature to make a “Top 50″ page. When you maked a post, put some of your ...

  • December 16th, 2009 at 4:29 am

    I have a huge of wordpress premium plugin. you can visit my site to download it

  • J W
    December 17th, 2009 at 11:05 am

    I have installed the already modified plugin and when I tried to activate it I recieved the folloeing error message:

    “The plugin does not have a valid header.”

    So Please can you help me out? I am using wp 2.8.6

  • ... Contest (attention: utiliser cette version pour les versions de WordPress supérieures à la 2.5): le célèbre plugin classe vos billets en ...

  • October 3rd, 2010 at 7:09 pm

    This is very helpful post and now my plugin is working. Thankyou……….

  • October 28th, 2010 at 1:26 pm

    Can you tell me what I have to do to fix this size of image box, and of course how to insert image in it (Popularity Contest).

  • July 11th, 2011 at 9:19 am


    When I install wp-o-matic plugins then show me an error message

    Plugin could not be activated because it triggered a fatal error.

    Fatal error: Cannot redeclare class WPOMatic in /home/favstock/public_html/wp-content/plugins/wp-o-matic/wpomatic.php on line 122

    Please help me

  • October 5th, 2012 at 8:19 pm

    ... Popularity Contest 人気投稿記事を表示するプラグイン。Popularity Contest Optionsで各項目の評価数値(持ち点みたいな)を調整することで、自分のサイトに合ったランキングを構成できる。 ...

  • November 17th, 2014 at 2:52 pm

    When I install wp-o-matic plugins it shows me an error message
    Plugin could not be activated because it triggered a fatal error.
    Fatal error: Cannot redeclare class WPOMatic in /home/favstock/public_html/wp-content/plugins/wp-o-matic/wpomatic.php on line 122
    Please help

  • Jennifer Smith
    July 13th, 2015 at 7:35 pm

    Wow…another amazing set of Great Information! Thank you very much for sharing these!
    Happy New Year Pictures 2016

  • July 28th, 2015 at 8:14 am

    Thanks so much for writing such an interesting and passionate piece. It was a pleasure to read. I look forward to reading more of your articles.

  • December 3rd, 2015 at 5:00 pm

    Nice Article

  • December 3rd, 2015 at 5:02 pm

    Nice Working

  • December 9th, 2015 at 2:47 pm

    wow!! i would visit this blog again and again for this..

  • December 19th, 2015 at 8:59 am

    i love to visit this blog very much

  • December 24th, 2015 at 8:27 am

    Nice post thanks for sharing.

  • December 24th, 2015 at 10:39 am

    Great Post….Thanks!!!!

  • February 4th, 2016 at 7:42 am

    I am 24 year old young Call Girl Model, I am offer Independent Models Girls independently, Independent female Girls, Independent Call Girls Models and etc.

  • February 4th, 2016 at 7:43 am

    Meghna Mathur offers you genuine independent Hyderabad Model service. Hire Meghan to make your night/day unforgettable with a sizzling Hyderabad Model girl.

  • February 4th, 2016 at 7:43 am

    Independent Hyderabad Hyderabad model, if you are disturb to daily work then you can fix your dating.

  • February 4th, 2016 at 7:44 am

    Suzane Escorts allow you to book their high profile Hyderabad Model girls waiting to give you full Physical satisfaction.

  • February 4th, 2016 at 7:45 am

    Purple Hyderabad Model service is a famous for client satisfaction.

Your Comment