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

  1. scotzine
    Posted 2 years 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?



  2. renevillegasr
    Posted 2 years 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
    Posted 2 years ago #

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

  4. renevillegasr
    Posted 2 years ago #

    Thanks, it's an honor, Greetings

  5. MorphMan
    Posted 2 years ago #

    I was having the same problem - that worked!

  6. Lester Chan
    Plugin Author

    Posted 2 years 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