Support » Plugins » Alex king fatal error Popularity Contest

  • I had uploaded a Alex king Popularity Contest. when try to activate it error msg show:
    Plugin could not be activated because it triggered a fatal error.
    I had found a post from http://blog.evaria.com/ show a solution;

    Open popularity-contest.php and scroll down to line 59. Replace require(’../../wp-blog-header.php’); with require(’../wp-blog-header.php’);

    but not work; my wordpress is install in directory /public_html/wordpress/ will it be the prob?>

Viewing 12 replies - 31 through 42 (of 42 total)
  • Using all of the fixes mentioned Popularity Contest finally activated.

    A Quick Rundown:

    1) Open popularity-contest.php

    2) Change line 59:

    FROM: require(‘../../wp-blog-header.php’);

    TO: require(‘../wp-blog-header.php’);

    3) Open MySQL with whatever administration program you use.

    4) Create Tables:

    ak_popularity_options (with 2 fields)
    option_name –> VARCHAR –> 50
    option_value –> VARCHAR –> 50

    ak_popularity (with 11 fields)
    post_id –> INT –> 11 (KEY)
    total –> INT –> 11
    feed_views –> INT –> 11
    home_views –> INT –> 11
    archive_views –> INT –> 11
    category_views –> INT –> 11
    single_views –> INT –> 11
    comments –> INT –> 11
    pingbacks –> INT –> 11
    trackbacks –> INT –> 11
    last_modified –> INT –> 11

    Addendum:

    When attempting to use the plugin on a second site the unable to find table error occurred. The solution was to add wp_ to the tables.

    ak_popularity CHANGED TO wp_ak_popularity

    ak_popularity_options CHANGED TO wp_ak_popularity_options

    G’day

    Thanks for the suggestions posted early but when I attempt to apply the suggested correction I get still get the fatal error plus

    Parse error: syntax error, unexpected ‘.’ in /home/.charis/aushiker/aushiker.com/wordpress/wp-content/plugins/popularity-contest.php on line 59

    which I assume means I have the directory structure in the require instruction incorrect. Does anyone have a suggested fix?

    Thanks
    Andrew

    Hi everyone, just download version 1.4 ready for wordpress 2.6.1 and give some feed back

    http://www.guatewireless.org/popularity-contest-14-wordpress-26-plugin-fixed-and-hacked/

    @fher98

    Thanks for you hard work. I took your mod and added the “create table” script to the plugin so you do not have to add the tables manually.

    I also see that you added a new function. I also want to add more functions and extend the plugin. I contacted WP to start a new repository so developers can continue to modify this plugin

    my hacked plugin:
    http://realhomeincomes.com/2008/10/09/popularity-content-plugins-for-wordpress-26-hack/

    I can get it to install, but I can’t change the rankings. Not sure why.

    I just tried activating Popularity Contest 1.3b3 in WP 2.6.2 and received a fatal error as well. I managed to trace the errors and fix the problems.

    Replace line 59 with these two lines:
    $path = realpath(dirname(__FILE__) . ‘/../..’);
    require($path . ‘/wp-blog-header.php’);

    Replace line 1528 with:
    if (isset($_GET[‘action’]) && $_GET[‘action’] == ‘activate’) {

    download this plugin and solved the problem enjoy 🙂

    http://wpguy.com/tips/popularity-contest-plugin-compatibility-with-wordpress-25

    Regards,
    Sam

    the best thanks wp-guy, i allow you solutions and only two step, i fix my problem 🙂

    Popular post plugin updated for 2.7 with auto database install.

    http://www.guatewireless.org/popularity-contest-plugin-para-wordpress/

    @wp-guy you rock! thanks for the post and fix for this.

    If you are installing Popularity Contest for the first time on a 2.5 – 2.7 WP install, be sure to read http://wpguy.com/tips/popularity-contest-plugin-compatibility-with-wordpress-25/ …it will save you from banging your head on the keyboard and it may save your marriage…jokes! 🙂

    I think most people have the plugin to the /plugins/popularitycontest/popularity-contest.php
    the proper directory should be /plugins/popularity-contest.php
    The php file shouldn’t be in the sub folder and should be directly into the plugins folder.

Viewing 12 replies - 31 through 42 (of 42 total)
  • The topic ‘Alex king fatal error Popularity Contest’ is closed to new replies.