Popularity Plugin Fix
A lot of people have been having trouble activating Alex Kings Popular Posts plugin when using Wordpress 2.5 and up. There are two simple changes that can fix this.
REMEMBER: BACKUPS ARE YOUR BEST FRIENDS! also this may only work if you have the blog installed on the root or on a subdomain rather then yoursite.com/blog
The first is to open up the popularity-contest.php file and go to line 59 or search for “require(’../../wp-blog-header.php’);“, here is a screenshot with the line I’m talking about highlighted.

Take away one of the “../” in that line and add an @ sign before ‘require’ and save the file. Here is a screenshot of how it should look now.

After this you may or may not get a second error that says “Table ‘wordpress.wp_ak_popularity_options’ doesn’t exist on line: 124″. or something similiar.
Go down to line 1528 or search for “if (isset($_GET['activate']) && $_GET['activate'] == ‘true’)” and yes, heres a screenshot of the part that I am talking about.

On that line, change ‘activate’ to ‘action’ and change ‘true’ to ‘activate’. Here is a screenshot of what the final result should be.

Save and upload all these files to your plugin folder, activate and it should work just fine ![]()
Similar Posts:
- None Found
Popularity: 25% [?]

Jen (1 comments)
1 Aug, 2008
thanks for this fix! it was very helpful!
EmmaB (62 comments)
3 Aug, 2008
@Jen – Glad i could be of help!