Wordpress 2.5 Problem with Popularity Contest

by Mike Haydon on 14 April 2008

If you are not using Popularity Contest on your Wordpress blog, you should. It is recommended by Jack Humphrey in his Authority Black Book. I have been using it for quite some time and have found it to be excellent. It employs a basic algorith to work out which of your posts are the most popular, based on views, comments, trackbacks, etc. You can then display (as I have in the right column) those most popular posts, putting their relative value in the hands of your readers. That’s what Web 2.0 is all about.

Imagine my horror then, when I upgraded to Wordpress 2.5 and found that I couldn’t activate Popularity Contest! It gave the dreaded “Fatal Error” message. It’s a shame the message doesn’t tell you what caused that fatal error message.

After searching for an answer, it appears that (if you already have it installed), all you have to do is open popularity-contest.php (look for it in “Plugin Editor” under the “Plugins” tab in the admin area of your blog), scroll down to line 59 and replace

require(’../../wp-blog-header.php’);

with

require(’../wp-blog-header.php’);

In other words, just take out one of the ../

If you are activating Popularity Contest for the first time, go to Ken McGuire’s blog and follow his instructions on setting up a table in mySQL.

I added Popularity Contest to a new blog that I recently set up for a few friends after Wordpress 2.5 was released. I changed the 59th line in Popularity-Contest, but I still couldn’t activate the plugin. I created a new table as Ken said and it works perfectly.

Popularity: 14% [?]

Post to Twitter Post to Yahoo Buzz Buzz This Post Post to Delicious Delicious Post to Digg Digg This Post Post to Reddit Reddit Post to StumbleUpon Stumble This Post

{ 1 comment… read it below or add one }

1 Ken McGuire 14 April 2008 at 2:27 pm

Hey Mike,

Glad I could be of some assistance.

All the best,

Ken

Leave a Comment

Previous post:

Next post: