Title: Poll Plugin for WordPress
Last modified: August 18, 2016

---

# Poll Plugin for WordPress

 *  [pera](https://wordpress.org/support/users/pera/)
 * (@pera)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/poll-plugin-for-wordpress/)
 * It’s for WordPress 1.2, will it work with WordPress 1.5 to ?

Viewing 15 replies - 1 through 15 (of 27 total)

1 [2](https://wordpress.org/support/topic/poll-plugin-for-wordpress/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/poll-plugin-for-wordpress/page/2/?output_format=md)

 *  [mat8iou](https://wordpress.org/support/users/mat8iou/)
 * (@mat8iou)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/poll-plugin-for-wordpress/#post-180810)
 * Which poll plugin?
 * If you are referring to the one here: [http://www.lesterchan.net/portfolio/programming.php](http://www.lesterchan.net/portfolio/programming.php)
   then you are in luck, as yesterday evening I managed to get it to work with 1.5,
   as I mentioned in another post.
 * >  I have managed to get the plugin to work with a bit of fiddling.
   >  You can 
   > download a zip with the ammended files from: [http://www.mtaylor.co.uk/temp/wp-polls_050403.zip](http://www.mtaylor.co.uk/temp/wp-polls_050403.zip)
   > Make sure you look through the readme file, as ther are some changes there 
   > as well. Other changes are documented at the ends of the source code files.
 * I hope this works for you.
 *  Thread Starter [pera](https://wordpress.org/support/users/pera/)
 * (@pera)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/poll-plugin-for-wordpress/#post-180813)
 * Thanks, it’s working 🙂
 *  [alile](https://wordpress.org/support/users/alile/)
 * (@alile)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/poll-plugin-for-wordpress/#post-181509)
 * I just tried to install this plugin and I got this message when I ran wp-admin/
   polls-install.php
 * WordPress database error: [You have an error in your SQL syntax. Check the manual
   that corresponds to your MySQL server version for the right syntax to use near‘(
   aid int(10) unsigned NOT NULL auto_increment, qid int(10) NOT]
    CREATE TABLE (
   aid int(10) unsigned NOT NULL auto_increment, qid int(10) NOT NULL default ‘0’,
   answers varchar(200) NOT NULL default ”, votes int(10) NOT NULL default ‘0’, 
   PRIMARY KEY (aid))
 * WordPress database error: [You have an error in your SQL syntax. Check the manual
   that corresponds to your MySQL server version for the right syntax to use near‘(
   id int(10) unsigned NOT NULL auto_increment, question varchar]
    CREATE TABLE (
   id int(10) unsigned NOT NULL auto_increment, question varchar(200) NOT NULL default”,
   timestamp varchar(20) NOT NULL default ”, total_votes int(10) NOT NULL default‘
   0’, PRIMARY KEY (id))
 * WordPress database error: [You have an error in your SQL syntax. Check the manual
   that corresponds to your MySQL server version for the right syntax to use near‘
   VALUES (1, ‘How Is My Site?’, ‘1112894265’, 0)’ at line 1]
    INSERT INTO VALUES(
   1, ‘How Is My Site?’, ‘1112894265’, 0);
 * WordPress database error: [You have an error in your SQL syntax. Check the manual
   that corresponds to your MySQL server version for the right syntax to use near‘
   VALUES (1, 1, ‘Good’, 0)’ at line 1]
    INSERT INTO VALUES (1, 1, ‘Good’, 0);
 * WordPress database error: [You have an error in your SQL syntax. Check the manual
   that corresponds to your MySQL server version for the right syntax to use near‘
   VALUES (2, 1, ‘Excellent’, 0)’ at line 1]
    INSERT INTO VALUES (2, 1, ‘Excellent’,
   0);
 * WordPress database error: [You have an error in your SQL syntax. Check the manual
   that corresponds to your MySQL server version for the right syntax to use near‘
   VALUES (3, 1, ‘Bad’, 0)’ at line 1]
    INSERT INTO VALUES (3, 1, ‘Bad’, 0);
 * WordPress database error: [You have an error in your SQL syntax. Check the manual
   that corresponds to your MySQL server version for the right syntax to use near‘
   VALUES (4, 1, ‘Can Be Improved’, 0)’ at line 1]
    INSERT INTO VALUES (4, 1, ‘Can
   Be Improved’, 0);
 * WordPress database error: [You have an error in your SQL syntax. Check the manual
   that corresponds to your MySQL server version for the right syntax to use near‘
   VALUES (5, 1, ‘No Comments’, 0)’ at line 1]
    INSERT INTO VALUES (5, 1, ‘No Comments’,
   0);
 * Can some one please tell me what to do now? I don’t know what it means. 🙁
    I
   asked my host if they had upgraded the Zend Optimizer when they upgraded PHP 
   to version 4.3.10 and they just to me that it is at the latest version currently.
 * I don’t know what to do. 🙁
 *  [gmaestro](https://wordpress.org/support/users/gmaestro/)
 * (@gmaestro)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/poll-plugin-for-wordpress/#post-181555)
 * I’m having some difficulty also, even following Mathew’s very clear directions
   I’m getting:
 * Fatal error: Call to undefined function: vote_poll() in /home2/jason/public_html/
   gm/wp-content/themes/parishuddha/index.php on line 1
 * hmm…might it work with a different theme?
 *  [gmaestro](https://wordpress.org/support/users/gmaestro/)
 * (@gmaestro)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/poll-plugin-for-wordpress/#post-181556)
 * nope.
 * Fatal error: Call to undefined function: vote_poll() in /home2/jason/public_html/
   gm/wp-content/themes/clasikue/index.php on line 4
 *  [gmaestro](https://wordpress.org/support/users/gmaestro/)
 * (@gmaestro)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/poll-plugin-for-wordpress/#post-181558)
 * Nevermind…I’m a loser. Well, that, and no where does it say in the directions
   that one needs to activate at the dashboard, just to use the whatever.php to 
   install. I’m just glad to get it going.
 *  [thepope](https://wordpress.org/support/users/thepope/)
 * (@thepope)
 * [21 years ago](https://wordpress.org/support/topic/poll-plugin-for-wordpress/#post-181588)
 * I’d like to display 2 or more polls on one page, the problem is of course the
   cookie disallows the other polls. Here is the cookie line:
 * // If User Click Vote
    if(isset($_POST[‘vote’])) { $voted = true; } // Check 
   User Cookie if(isset($_COOKIE[“voted_”.$polls_questions[0][‘id’]])) { $voted 
   = true; }
 * I am calling the polls by ID:
    <?php get_polls(‘3’); ?> <?php get_polls(‘2’);?
   > <?php get_polls(‘1’); ?>
 * Is this a quick change? Thanks so much
 *  [spoonbill](https://wordpress.org/support/users/spoonbill/)
 * (@spoonbill)
 * [21 years ago](https://wordpress.org/support/topic/poll-plugin-for-wordpress/#post-181595)
 * hmmm, it all works here, but once i cast a vote i get this on top of my page:
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/.feabhra/shdsmith/sietsesmith.com/blog/wp-content/themes/connections/
   index.php:4) in /home/.feabhra/shdsmith/sietsesmith.com/blog/wp-content/plugins/
   polls.php on line 80
 * what does it mean? (im a total n00b at coding..)
 *  [spoonbill](https://wordpress.org/support/users/spoonbill/)
 * (@spoonbill)
 * [21 years ago](https://wordpress.org/support/topic/poll-plugin-for-wordpress/#post-181596)
 * hmm, i seem to have fixed it.. dont ask me how 🙂
 *  [ghecko](https://wordpress.org/support/users/ghecko/)
 * (@ghecko)
 * [21 years ago](https://wordpress.org/support/topic/poll-plugin-for-wordpress/#post-181604)
 * It all installs fine and shows up but when you vote the results always stay at
   0% no votes – any ideas.
 *  [parisgv](https://wordpress.org/support/users/parisgv/)
 * (@parisgv)
 * [21 years ago](https://wordpress.org/support/topic/poll-plugin-for-wordpress/#post-181605)
 * ive got the error:
 * [quote]
 * WordPress database error: [You have an error in your SQL syntax. Check the manual
   that corresponds to your MySQL server version for the right syntax to use near‘(
   aid int(10) unsigned NOT NULL auto_increment, qid int(10) NOT]
    CREATE TABLE (
   aid int(10) unsigned NOT NULL auto_increment, qid int(10) NOT NULL default ‘0’,
   answers varchar(200) NOT NULL default ”, votes int(10) NOT NULL default ‘0’, 
   PRIMARY KEY (aid))
 * WordPress database error: [You have an error in your SQL syntax. Check the manual
   that corresponds to your MySQL server version for the right syntax to use near‘(
   id int(10) unsigned NOT NULL auto_increment, question varchar]
    CREATE TABLE (
   id int(10) unsigned NOT NULL auto_increment, question varchar(200) NOT NULL default”,
   timestamp varchar(20) NOT NULL default ”, total_votes tinyint(4) NOT NULL default‘
   0’, PRIMARY KEY (id))
 * WordPress database error: [You have an error in your SQL syntax. Check the manual
   that corresponds to your MySQL server version for the right syntax to use near‘
   VALUES (1, ‘How Is My Site?’, ‘1075479885’, 0)’ at line 1]
    INSERT INTO VALUES(
   1, ‘How Is My Site?’, ‘1075479885’, 0);
 * WordPress database error: [You have an error in your SQL syntax. Check the manual
   that corresponds to your MySQL server version for the right syntax to use near‘
   VALUES (1, 1, ‘Good’, 0)’ at line 1]
    INSERT INTO VALUES (1, 1, ‘Good’, 0);
 * WordPress database error: [You have an error in your SQL syntax. Check the manual
   that corresponds to your MySQL server version for the right syntax to use near‘
   VALUES (2, 1, ‘Excellent’, 0)’ at line 1]
    INSERT INTO VALUES (2, 1, ‘Excellent’,
   0);
 * WordPress database error: [You have an error in your SQL syntax. Check the manual
   that corresponds to your MySQL server version for the right syntax to use near‘
   VALUES (3, 1, ‘Bad’, 0)’ at line 1]
    INSERT INTO VALUES (3, 1, ‘Bad’, 0);
 * WordPress database error: [You have an error in your SQL syntax. Check the manual
   that corresponds to your MySQL server version for the right syntax to use near‘
   VALUES (4, 1, ‘Can Be Improved’, 0)’ at line 1]
    INSERT INTO VALUES (4, 1, ‘Can
   Be Improved’, 0);
 * WordPress database error: [You have an error in your SQL syntax. Check the manual
   that corresponds to your MySQL server version for the right syntax to use near‘
   VALUES (5, 1, ‘No Comments’, 0)’ at line 1]
    INSERT INTO VALUES (5, 1, ‘No Comments’,
   0);[/quote]
 * y? whats wrong?
 *  [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [21 years ago](https://wordpress.org/support/topic/poll-plugin-for-wordpress/#post-181606)
 * hi all, my guess is that u all didnt put in the tables to wp-settings.
 * -> Installation Instructions
    ————————————————– // Open wp-settings.php
 * Find:
    —————————————————————— $wpdb->postmeta = $table_prefix . ‘postmeta’; ——————————————————————
   Add Below It: —————————————————————— $wpdb->pollsa = $table_prefix . ‘pollsa’;
   $wpdb->pollsq = $table_prefix . ‘pollsq’; ——————————————————————
 *  [parisgv](https://wordpress.org/support/users/parisgv/)
 * (@parisgv)
 * [21 years ago](https://wordpress.org/support/topic/poll-plugin-for-wordpress/#post-181607)
 * no, we did this 🙂
 *  [anela](https://wordpress.org/support/users/anela/)
 * (@anela)
 * [21 years ago](https://wordpress.org/support/topic/poll-plugin-for-wordpress/#post-181610)
 * Those of you with the MySQL error – are you **SURE** you made the changes to 
   the wp-settings and uploaded it? I got the MySQL error, the exact same thing 
   until I realized I’d forgotten to upload the wp-settings file. Once I did that,
   it installed with a snap.
 * *off to try polls now…*
 *  [osiosal](https://wordpress.org/support/users/osiosal/)
 * (@osiosal)
 * [21 years ago](https://wordpress.org/support/topic/poll-plugin-for-wordpress/#post-181611)
 * I’m getting a similar error listed above. Everything seemed to install just fine,
   but after anyone casts a vote, I get the following message on the screen:
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/tir-na-o/public_html/WordPress/wp-content/themes/plain-vanilla/header.
   php:6) in /home/tir-na-o/public_html/WordPress/wp-content/plugins/polls.php on
   line 71
 * any ideas?

Viewing 15 replies - 1 through 15 (of 27 total)

1 [2](https://wordpress.org/support/topic/poll-plugin-for-wordpress/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/poll-plugin-for-wordpress/page/2/?output_format=md)

The topic ‘Poll Plugin for WordPress’ is closed to new replies.

 * 27 replies
 * 21 participants
 * Last reply from: [juryduty](https://wordpress.org/support/users/juryduty/)
 * Last activity: [20 years, 5 months ago](https://wordpress.org/support/topic/poll-plugin-for-wordpress/page/2/#post-181703)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
