• 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 15 replies - 16 through 30 (of 42 total)
  • soleman

    (@soleman)

    Got it working….!

    soleman

    (@soleman)

    I just installed WP and Popularity Contest on the live server and the only change is that I have WP in the root so wp-blog-header.php is in the root with the WP directories right off the root.

    On my install where WP was installed in a wordpress directory – I used this and it worked perfectly: ../../wp-blog-header.php

    On the new install I’ve tried everything from no ../ to ../ , ../../, ../../../ But none of them work – Iget the Fatal Error.

    Anyone know the fix?

    soleman

    (@soleman)

    Got it fixed… weird error.

    ssonmez

    (@ssonmez)

    matsrehn, thank you. It’s work.

    mr12ka4

    (@mr12ka4)

    all dese soutions will work only when upgrading to WP 2.5 but this populairty contest isnt wrking on fresh installation .
    is dere any solution …?

    The fix is not working for me on a fresh install of 2.5.1 either.

    I did some research. If your installation is new, you have to make the modification as described above, upload the plugin, run the below SQL query through phpmyadmin, and THEN activate the plugin. Works for me..

    CREATE TABLE IF NOT EXISTS <code>wp_ak_popularity</code> (
        <code>post_id</code> int(11) NOT NULL,
        <code>total</code> int(11) NOT NULL,
        <code>feed_views</code> int(11) NOT NULL,
        <code>home_views</code> int(11) NOT NULL,
        <code>archive_views</code> int(11) NOT NULL,
        <code>category_views</code> int(11) NOT NULL,
        <code>single_views</code> int(11) NOT NULL,
        <code>comments</code> int(11) NOT NULL,
        <code>pingbacks</code> int(11) NOT NULL,
        <code>trackbacks</code> int(11) NOT NULL,
        <code>last_modified</code> datetime,
        KEY <code>post_id</code> (<code>post_id</code>)
        ) ENGINE=MyISAM;
    
        CREATE TABLE IF NOT EXISTS <code>wp_ak_popularity_options</code> (
        <code>option_name</code> varchar(50) NOT NULL,
        <code>option_value</code> varchar(50) NOT NULL
        ) ENGINE=MyISAM;

    Nah, I cannot get it working, Still keeps triggering Fatal Errors.

    I did all those things, and it still don’t work.

    I believe the tables are there, as previously it was working. Now it doesn’t with WP 2.5 any more.

    Alex King also is not updating it…..

    I wrote an article about this issue over here:

    Popularity Contest plugin and WordPress 2.5

    Hope it helps!

    WP guy, thanks. worked perfect for me.

    wp-guy, AWESOME!

    wp_guy, it works!

    wp-guy, thanks. i just used your modified code and it worked great. =)

    Fatal error for me.

    I’m not prepared to fool around with the code, so I’ll wait for a sanctioned update from Alex…

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

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