WP-Polls 2.50 common errors
23 Sep, 2009. Written by Tom Roggero
I think the most common error is to get the poll but it doesn't work. I mean all options are displayed, but when hitting the button Vote! nothing happens.
This is caused because of the jQuery JS library for WordPress Polls didn't load correctly. So, if you have Firebug and Console enabled for the web, you will see the error:
poll_vote is not defined
To fix it, there are some differents solutions, because it could be caused by more than just one mistake.
FIRST: Ensure your template uses the wp_head(); function.
SECOND: Ensure your template uses the
<?php do_action('wp_footer'); ?>
-or-
<?php wp_footer(); ?>
THIRD: (just for advanced users, in case that the first and second didn't work for you) Edit your /wp-content/plugins/wp-polls/wp-polls.php file, search
wp_enqueue_script('wp-polls', plugins_url('wp-polls/polls-js.js'), array('jquery'), '2.50', true);
and replace where it says true for false so it looks like
wp_enqueue_script('wp-polls', plugins_url('wp-polls/polls-js.js'), array('jquery'), '2.50', false);
Hope you fixed it, anyway you can comment above and tell me, if I know, I'll tell you the solved code.