Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Poll results -- mystery
Avatar
Hong Tang
Member
Free Members
sp_UserOfflineSmall Offline
Nov 6, 2013 - 11:02 am
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
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 6, 2013 - 11:07 am

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

Avatar
Hong Tang
Member
Free Members
sp_UserOfflineSmall Offline
Nov 6, 2013 - 11:24 am

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.

Avatar
Hong Tang
Member
Free Members
sp_UserOfflineSmall Offline
Nov 6, 2013 - 12:42 pm

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 =

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 6, 2013 - 2:13 pm

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...

Avatar
Hong Tang
Member
Free Members
sp_UserOfflineSmall Offline
Nov 6, 2013 - 2:30 pm

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!

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 6, 2013 - 7:06 pm

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...

Avatar
Hong Tang
Member
Free Members
sp_UserOfflineSmall Offline
Nov 7, 2013 - 7:36 am

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 7, 2013 - 12:01 pm

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

Avatar
Hong Tang
Member
Free Members
sp_UserOfflineSmall Offline
Nov 11, 2013 - 5:10 pm

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.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625