Popularity Contest Plugins activation error
May 18, 2008 – 3:46 amToday I’m make a decision to install Alex King’s Popularity Contest. After i download the file and copy to my /plugins,I try to activate the plugins but got this error ‘Plugin could not be activated because it triggered a fatal error’. So the solution is :
- Open popularity-contest.php find (’../../wp-blog-header.php’) and replace with (’../wp-blog-header.php’)
- Create 2 tables, must do it manually. I means using your phpMyadmin. You’ll need to 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;
It’s work…you can see at each of my post. If you had a problem like me..try applied solution that i write…
Popularity: 13% [?]
Tags: Alex King, Popularity Contest, wordpress













One Response to “Popularity Contest Plugins activation error”
Why bother changing it to the likes of
require(’../wp-blog-header.php’);ORrequire(’../somedir/wp-blog-header.php’);? I’ve read thousands of complaints - it worked for some, it didn’t for others. The relative path scheme may not always work out correctly.If you ask me, the best option would be to use the ABSPATH variable (defined in wp-config.php) and concatenate the rest of the string to it.
Example:
require( ABSPATH . '/wp-blog-header.php' );This should work out without a hitch for anyone and everyone…
Cheers,
m^e
[Reply]
By miCRoSCoPiC^eaRthLinG on May 29, 2008