Alex king fatal error Popularity Contest (43 posts)

  1. picard102
    Posted 6 years ago #

    I've also had no luck, insted of giving me errors though, I get a 500 error when trying to acticvate it.

  2. Storyman
    Posted 6 years ago #

    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

  3. Storyman
    Posted 6 years ago #


    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

  4. Aushiker
    Posted 6 years ago #


    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?


  5. fher98
    Posted 6 years ago #

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


  6. freebee
    Posted 6 years ago #


    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:

  7. Bonusball
    Posted 6 years ago #

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

  8. Brad Touesnard
    Posted 6 years ago #

    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') {

  9. chouxpastry2002
    Posted 6 years ago #

    download this plugin and solved the problem enjoy :)



  10. yustian
    Posted 6 years ago #

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

  11. fher98
    Posted 6 years ago #

    Popular post plugin updated for 2.7 with auto database install.


  12. tech_coach
    Posted 6 years ago #

    @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! :)

  13. afkae
    Posted 6 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic