WordPress.org

Ready to get started?Download WordPress

Forums

WP-Polls
[resolved] Vote button no longer working (6 posts)

  1. scotzine
    Member
    Posted 1 year ago #

    Have just realised that after this poll plugin working on the site for several years, it has just stopped working. People can click on the options to vote for no problem at all - but the vote button cannot be clicked.

    I have checked for a way to sort it out on here but cannot see anything. And it looks like the developer of the plugin - while I suspect very busy - is not bothering to help out either.

    Anyone have a way to sorting it out?

    http://www.scotzine.com/2013/07/what-is-the-greatest-scottish-sporting-achievement-ever/

    http://wordpress.org/extend/plugins/wp-polls/

  2. renevillegasr
    Member
    Posted 1 year ago #

    I had the same case, I changed a value of the function wp_enqueue_script() in line 214 of the wp-polls.php file like this:

    The original:
    wp_enqueue_script('wp-polls', plugins_url('wp-polls/polls-js.js'), array('jquery'), '2.63', true);

    The Change:
    wp_enqueue_script('wp-polls', plugins_url('wp-polls/polls-js.js'), array('jquery'), '2.63', false);

    The file wp-polls.php is in the plugins directory /wp-content/plugins/wp-polls/wp-polls.php

    After this, it work's.

    Try and comment.

  3. scotzine
    Member
    Posted 1 year ago #

    Perfect renevillegasr worked a treat. Thanks again for your help.

  4. renevillegasr
    Member
    Posted 1 year ago #

    Thanks, it's an honor, Greetings

  5. MorphMan
    Member
    Posted 1 year ago #

    I was having the same problem - that worked!
    http://whiteowlconspiracy.com/
    cheers

  6. Lester Chan
    Member
    Plugin Author

    Posted 1 year ago #

    What that line does, bascially change the loading of the Polls JS from the footer (which is recommended) to the header.

    So if it breaks at the footer, that means your site has a Javascript problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic