Skip to content

Once more fix for Popularity Contest

When I've installed fixed version of the Popularity Contest into an fresh blog based on WP 3.2.1 I get new problem with this plugin on activation, - a fatal error with very short message:


on line: 255

After aplying the following fix the plugin activates correctly:


--- popularity-contest.php.old	2010-09-19 15:39:04.000000000 +0400
+++ popularity-contest.php	2011-08-10 16:43:28.000000000 +0400
@@ -95,6 +95,7 @@
 	if (!is_a($akpc, 'ak_popularity_contest')) {
 		$akpc = new ak_popularity_contest();
 	}
+	akpc_init();
 	$akpc->install();
 	$akpc->upgrade();
 	$akpc->mine_gap_data();

Leave a Reply

Your email address will not be published. Required fields are marked *