WordPress.org

Ready to get started?Download WordPress

Forums

Wp-Polls 1.5 updated (48 posts)

  1. uberwolf
    Member
    Posted 9 years ago #

    I downloaded the new updated 1.5 wp-polls from gamerz.

    I have installed it and it displays correctly but it is not recording votes.

    When I attempted to run the install script I got these errors (or at least, the second time I tried to run it. ran into some problems on first attempt)

    WordPress database error: [Table 'wp_pollsa' already exists]
    CREATE TABLE wp_pollsa ( 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: [Table 'wp_pollsq' already exists]
    CREATE TABLE wp_pollsq ( 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))

    any ideas what i'm doing wrong or why it wouldnt be recording? if its sql i'm probably screwed i know jack about mysql :(

  2. uberwolf
    Member
    Posted 9 years ago #

    I believe I just solved this problem myself. I noticed that when it was looking for the 'polls archive' it was pointing to the root domain/wp-polls.php

    I believe that I had uploaded wp-polls.php to the plugin file as the text document instructed (i think anyways)

    So, anyways, its fixed now. If you have trouble installing it, loading wp-polls to the root directory of the blog script was what fixed it for me.

  3. uberwolf
    Member
    Posted 9 years ago #

    hrm, maybe not. Its not recording it from the template page (the main page) but will record votes from the wp-polls.php page

    weird as hell :(

  4. uberwolf
    Member
    Posted 9 years ago #

    one last comment before I try to take a little sleep in, when adding the line

    vote_poll();

    to header.php as the readme instructs, it simply appears at the top of the template as text. am I doing something wrong?

  5. Lester Chan
    Member
    Posted 9 years ago #

    hi there, sorry for not clarifying in the readme. It should be <?php vote_poll(); ?>

    Cheers

  6. soupenvy
    Member
    Posted 9 years ago #

    Based on that first post in this thread, you already have an older version installed...

    Note: f you are already running wp-polls, please run wp-admin/polls-upgrade.php first.

  7. soupenvy
    Member
    Posted 9 years ago #

    To get my polls to submit properly (I'm using them on individual entry archives - aka - the single.php template), I had to remove "index.php" from the action... (line 58 of polls.php) Is this normal? Or am I supposed to set wordpress to use explicit file names?

  8. uberwolf
    Member
    Posted 9 years ago #

    I tried running the upgrade file and got this error:
    Parse error: parse error, unexpected '<' in /home/boogie/boogie-blog.com/wp-admin/polls-upgrade.php on line 2

    Oh found the problem there was an extra <PHP line on it. removed it and I think it upgraded fine. (I got the blank page as you suggested I should)

    oh and then I sent a few friends over to vote and I believe it is now recording properly. :)

  9. nobody-
    Member
    Posted 9 years ago #

    poll doesnt work properly for me... I can vote, and it records it fine, but when i come back to my page it gives me the questions again when it should just dispplay the results...

  10. sfboarders
    Member
    Posted 9 years ago #

    GamerZ - This is a great mod. Is there a way to set it up so Guests or Anons can vote?

  11. Lester Chan
    Member
    Posted 9 years ago #

    soupenvy: yap that is normal, I created it based on index.php.
    uberwolf: point noted, will fix that.

  12. Lester Chan
    Member
    Posted 9 years ago #

    nobody-: u tried closing and opening the browser again? I think the cookie is not recordered in your PC

  13. nobody-
    Member
    Posted 9 years ago #

    Working fine for me now.

    Is the file wp-polls supposed to be placed in the home directory of the blog? and not in the plugins folder as stated in the readme file.

    Because thats where it tries to look for it when you click "Polls Archive" under the poll.

  14. Jvasquez11
    Member
    Posted 9 years ago #

    i get the same 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))

    I tried moving it into the root directory as described above but am still getting the same error, why is this plugin so hard to impliment? am I missing something?

  15. UsmanLaw
    Member
    Posted 9 years ago #

    My votes are only registering when i vote in poll archives. They are not working when done from the sidebar? any ideas?

    problem has been fixed by correctly placing <?php vote_poll(); ?>

    But now when vote is counted and result is shown the top of the page says "Warning: Cannot modify header information - headers already sent by (output started at /home/usman/www/www/index.php:3) in /home/usman/www/www/wp-content/plugins/polls.php on line 80"

  16. Jvasquez11
    Member
    Posted 9 years ago #

    Nevermind guys fixed it it was my mistake

  17. silfver
    Member
    Posted 9 years ago #

    UsmanLaw: I have the same problem! The cookie for the vote isn't set, and that error message appears at the top of the page.

  18. brakkums
    Member
    Posted 9 years ago #

    I'm also getting the "Warning: Cannot modify header information - headers already sent by..." error and would like to know how to fix it.

    And also, as I mentioned in this thread:
    http://wordpress.org/support/topic.php?id=26573
    I've noticed that if you refresh the page it sends your vote in again. That makes the plugin worthless unless nobody ever returns to the site.

    And one last thing -- the "Vote" button is only showing up for Firefox. Anybody know why that would be? Not there for Opera or IE.

    I really like this plugin & have been waiting patiently for the upgrade, but still have been having bad luck with it...

  19. skeltoac
    Member
    Posted 9 years ago #

    The headers error is caused by some output occurring too soon. Having ANYTHING before "<?php" or after "?>" in a plugin or theme file can cause this.

    Check for spaces or blank lines at the beginning and end of any recently added/modified php files.

  20. skeltoac
    Member
    Posted 9 years ago #


  21. piginzen
    Member
    Posted 9 years ago #

    does anyone have an idea why my polls look really funky? i cant figure it out... i've even tried messing with the CSS... no luck... and i've tried reloading the plugin twice...

    the link is in my user profile... and the poll is in the sidebar on the right

    thanks,
    mat

  22. uberwolf
    Member
    Posted 9 years ago #

    Gamerz,

    just wanted to add to this thread thanks so much for a great plugin. I think it really does add some nice content to the sites its on. if nothing else its fun.

    Thanks mate.

  23. piginzen
    Member
    Posted 9 years ago #

    Yeah, Gamerz...

    All your plugins are so nicely designed.

  24. UsmanLaw
    Member
    Posted 9 years ago #

    still getting the warning, can someone send me their header file so I can see where they placed the code.

    UsmanLaw@gmail.com

  25. UsmanLaw
    Member
    Posted 9 years ago #

    Anyone get this to work without the warning at the top of the page after a vote?

  26. felipe
    Member
    Posted 9 years ago #

    Yes, anyone get this to work? I too get the mofifying headers error, and I've checked for white space everywhere.

  27. felipe
    Member
    Posted 9 years ago #

    I also have a problem that one vote is counted as two.

  28. UsmanLaw
    Member
    Posted 9 years ago #

    felipe - thanks for the support. I dont think anyone can help...

  29. silfver
    Member
    Posted 9 years ago #

    UsmanLaw: Open up your index.php file. On the first two lines you should have these two lines:

    <?php get_header(); ?>
    <?php vote_poll(); ?>
    Switch place at those. vote_poll should be on the first line.

    That solved my problem. Almost. But still the cookie isn't set, so you can still vote as much as you want. :(

  30. Lester Chan
    Member
    Posted 9 years ago #

    hi all, it is my bad, i didnt state clearly in the readme.

    To get rid of the header errors

    use <?php vote_polls(); ?> right at the top of header.php under your themes.

Topic Closed

This topic has been closed to new replies.

About this Topic