Support Forum

Poll results — mystery

HT Hong Tang
Hong Tang
Member
Testing the poll function as a new poll produced the following results with 9 votes (tracking is by User ID).  Don’t understand the result. A has 2 votes, B has 2 and total votes is 9.

 

Poll Question

  • A (22% : 2 votes)
  • B (22% : 2 votes)
  • C (0% : 0 votes)
  • D (0% : 0 votes)
Total Voters: 9

10 Answers

New Answer

MP Mr Papa
Mr Papa
Member

nor do I…  but going to need more info as to how things have progressed?  did you ever change things in the admin?  ie manage the poll?   some owners like to add votes to make it look more popular… that would have to be done in concert with corresponding votes to make it look right, but two distinct actions…

if you didnt do that, unsure what might have happened

HT Hong Tang
Hong Tang
Member

No admin changes were made on the Poll Plugin options.

The test poll allows max of two selections to be made by each voter.

During the test, it appeared that if one tried to vote again immediately, the system sometimes didn’t reject the voter as already voted – not always though.  Since the poll setting was tracking by User ID, one would think it should simply update the vote for that user if voted again.

HT Hong Tang
Hong Tang
Member

Found related error messages in in toolbox:

 

Error Type php

file: w/problem-with-post-edit-buttontml/wp-content/sp-resources/forum-plugins/polls/ahah/sp-polls-ahah-manage.php

line: 122

function: include_once

Notice | Undefined index: fid

file: w/problem-with-post-edit-buttontml/wp-content/sp-resources/forum-plugins/polls/ahah/sp-polls-ahah-manage.php

line: 74

function: include_once

Notice | Undefined index: sp-poll-answer

file: w/problem-with-post-edit-buttontml/wp-content/sp-resources/forum-plugins/polls/ahah/sp-polls-ahah-manage.php

line: 96

function: include_once

Notice | Undefined offset: 1

file: w/problem-with-post-edit-buttontml/wp-content/sp-resources/forum-plugins/polls/ahah/sp-polls-ahah-manage.php

line: 71

function: include_once

Notice | Undefined index: sp-poll-forum

Error Type database:

file: /var/www/problem-with-post-edit-buttontml/wp-content/sp-resources/forum-plugins/polls/sp-polls-plugin.php

line: 223

function: include_once

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 ” at line 1

UPDATE wp_305_sfpollsanswers SET answer_votes = (answer_votes + 1) WHERE poll_id = 1 AND answer_id =

MP Mr Papa
Mr Papa
Member

most of those are harmless notices, not errors… the last one is interesting though…

it indicates that a vote has occurred but no answer was given.  but not sure how that can occur.  when you vote, before the vote is accepted, it ensures you have an answer…  are you, on your site, able to just click vote, but not select an answer?

also, just a check, but are you running the latest polls plugin version? 1.3.10…

HT Hong Tang
Hong Tang
Member

Mr Papa said
most of those are harmless notices, not errors… the last one is interesting though…

it indicates that a vote has occurred but no answer was given.  but not sure how that can occur.  when you vote, before the vote is accepted, it ensures you have an answer…  are you, on your site, able to just click vote, but not select an answer?

also, just a check, but are you running the latest polls plugin version? 1.3.10…

Yes Version 1.3.10. WP3.6.1, SP5.3.4 & php 5.3.3

 

Thanks!

 

MP Mr Papa
Mr Papa
Member

you did not answer the primary question of my last post… are you able to vote without making an answer?  In my testing, that is working fine for me…

HT Hong Tang
Hong Tang
Member

That was probably the case that for some reason empty votes were allowed.  I was not able to reproduce it with another new poll. Will PM you a test login. Thanks

MP Mr Papa
Mr Papa
Member

no one should be able to vote without an answer…  will take a look, but expect same results as you…

HT Hong Tang
Hong Tang
Member

I guess empty votes were introduced by replies quoting the original poll.  Before we have a version that disallow quoting, we can probably still use the poll function in a separate forum with the permission set of not allowing reply at all.

MP Mr Papa
Mr Papa
Member

I have opened a ticket to try to keep from having it do anything in blockquote… dont know how possible, bit its on the list now…