If you upgraded WordPress to 2.5 and above, you will most likely encounter the Fatal Error problem when trying to activate the Popularity Contest Plugin by Alexa King even if you downloaded the latest version (currently 1.3b3).
Here is the fix for the fatal error:
1. Open popularity-contest.php
2. Scroll down to line 59.
3. Find require(’../../wp-blog-header.php’);
4. Replace with require(’../wp-blog-header.php’);
If you activated it and it displayed the wp_ak_popularity does not exists error, go to your MyPHPAdmin in your control panel for your server, run the following SQL queries:
CREATE TABLE IF NOT EXISTS `wp_ak_popularity` (
`post_id` int(11) NOT NULL,
`total` int(11) NOT NULL,
`feed_views` int(11) NOT NULL,
`home_views` int(11) NOT NULL,
`archive_views` int(11) NOT NULL,
`category_views` int(11) NOT NULL,
`single_views` int(11) NOT NULL,
`comments` int(11) NOT NULL,
`pingbacks` int(11) NOT NULL,
`trackbacks` int(11) NOT NULL,
`last_modified` datetime,
KEY `post_id` (`post_id`)
) ENGINE=MyISAM;CREATE TABLE IF NOT EXISTS `wp_ak_popularity_options` (
`option_name` varchar(50) NOT NULL,
`option_value` varchar(50) NOT NULL
) ENGINE=MyISAM;
Verify the 2 tables exist and try to activate the plugin again. It should work now.
Popularity: 4% [?]
You Should Also Check Out This Post:
- Richard Palace is Back to Make Money Online!
- Obama - Winner of the 2008 US Presidential Election
- Google Released Google Chrome
- PS3 Update 2.42
- Sony PSP-3000 Announced
More Active Posts:
- Just Jean and Simply Jean are the Same Jean? (34)
- Google SiteMap For WordPress MU Plugin 1.513101 (25)
- PS3 Update 2.35 (24)
- Disney Channel Camp Rock at Disney.com/CampRock (15)
- Google Released Google Chrome (10)
- Who Will Win The US Presidential Election? Barack Obama or John McCain? (9)
- PS3 Update 2.36 (8)
- Randy Pausch Death Update (6)
- Dawn Yang - Singapore Hottest Blogger (6)
- Deven Trabosh - Marry a Princess Lost in America (6)
































Oh oh thank you very much for this piece of code.
You saved my day!