Unlock The Online World: blogging tips, tricks and other information

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.

Screen Shot

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.

ScreenShot

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.

ScreenShot

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

ScreenShot
Save and upload all these files to your plugin folder, activate and it should work just fine :)

Similar Posts:

    None Found

Popularity: 25% [?]

This work, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Share Alike 2.5 Canada License.
  • thanks for this fix! it was very helpful!

  • @Jen – Glad i could be of help!

You can follow any responses to this entry through the RSS 2.0 feed.