Support Forum

Polls: You have entered more than the maximum allowed votes

VE veritasnoctis
veritasnoctis
Member

I’ve run into a problem with the polls plugin. I created my first poll. It has three answers to choose from. I set the maximum allowed answers to one. And when anyone tries to vote, they get a pop up that says “You have entered more than the maximum allowed votes.”

So I tried changing the maximum number of allowed votes. Turns out I need to set the maximum number of allowed votes to one more than the actual number of votes I want to allow. If I want to allow only one vote, I have to set the max to two. If I want to allow two, I have to set the max to three. And so on.

I don’t know whether this is a bug or some conflict. I’m able to get the poll working with the above kluge, but there’s still a problem. If the max allowed number of votes is set to one, then only one answer can be selected at a time. Clicking on a different answers causes the selected-answer indicator (colored dot) to move. But if the max allowed is set to two or more, then any number of answers can be selected simultaneously, leading to potential confusion among voters; they don’t know that only one vote is allowed unless I tell them.

Hopefully this will be easy to diagnose and fix. Has anyone else encountered this problem?

15 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

I am unable to replicate this so far. Are you sure you are using the latest version? No updates waiting?

MP Mr Papa
Mr Papa
Member

And please tell us what you are using for your polls options, ie vote tracking method….

VE veritasnoctis
veritasnoctis
Member

Settings:

  • Restrict poll creation to new topics
  • Answer and results sorting: answer creation order, ascending
  • Tracking options: ID (although I had tried IP and Cookie first with the same results)
  • Other settings: default.

Plugin version 1.1; I don’t see any update waiting.

The poll is in a topic in a subforum.

 

By the way, this is an unrelated issue, but the options menu in the sidebar of the Dashboard and the Admin Links on the frontend of the forum don’t match the menu on the forums admin page. Plugins like Polls and Private Messaging get their own entries on the admin page, but they aren’t added to these other places.

YS Yellow Swordfish
Yellow Swordfish
Member

Steve will need to respond to the Polls part.
As to the admin menu – WP makes it extremely hard to add items on the fly to the admin menu – in fact I would say it is not possible. By the time – at page load – that the Sp plugins are ‘discovered’ the admin menu is already cooked. The good news is that the Wp team recognise that the way the admin menu currently works is pretty bad and do aim at some point to rewrite it and we hope that will be soon.

MP Mr Papa
Mr Papa
Member

So if tracking votes by ID, I assume you are not allowing guests to vote since they won’t have an ID and would not get restrictions.

I would ask for a link to example poll to see in action, but guest voting likely not allowed.

I could not recreate this but did not try in sub forum but that should not matter. Will try to be sure this weekend. On Aug 17, 2012 7:57 AM, “Simple:Press Support” wrote:

> > >

VE veritasnoctis
veritasnoctis
Member

Mr Papa said
So if tracking votes by ID, I assume you are not allowing guests to vote since they won’t have an ID and would not get restrictions.

I would ask for a link to example poll to see in action, but guest voting likely not allowed.

I created a test poll in a forum that doesn’t require registration and login to post and I changed the permissions in that forum to allow guests to vote in a poll. I set the max allowed answers per vote to 1. Will you be able to test the poll if tracking is still by ID? Or do you need me to change that option?

http://prometheus-unbound.org/forums/forums-feedback/poll-test/

I just tested the test poll myself as both a non-admin user and a guest. I get the same result every time: You have entered more than the max allowed votes.

MP Mr Papa
Mr Papa
Member

This is likely because you are caching the forum page…

<!– This Quick Cache file was built for ( prometheus-unbound.org/forums/forums-feedback/poll-test/ ) in 3.12801 seconds, on Aug 18th, 2012 at 12:19 am EDT. –>
<!– This Quick Cache file will automatically expire ( and be re-built automatically ) on Aug 18th, 2012 at 1:19 am EDT –>

you cannot cache the forum page since all the content appears on a single wp page… wp caching plugins get confused and screw up content, css and js because each page load is dynamic…

you will need to tell that caching plugin to ignore the wp page the forum is on…

VE veritasnoctis
veritasnoctis
Member

Okay, I think I’ve got caching turned off for that page, but the problem persists.

MP Mr Papa
Mr Papa
Member

Its the bad behaviour plugin you are running… for some reason, it is adding its own form element to the poll submission form…

This is making it look like there is an extra answer being provided to the polls voting processing… hence the error…

why in the hell, bad behaviour is adding elements to submitted forms is beyond me…   certainly not cool…

VE veritasnoctis
veritasnoctis
Member

Mr Papa said
Its the bad behaviour plugin you are running… for some reason, it is adding its own form element to the poll submission form…

This is making it look like there is an extra answer being provided to the polls voting processing… hence the error…

why in the hell, bad behaviour is adding elements to submitted forms is beyond me…   certainly not cool…

Hhmmm…yup, that was it. I deactivated the Bad Behavior plugin and now I can vote with a max answer allowed of one. Think y’all can develop a workaround? Or get the developer of Bad Behavior to change how it works? Or will I need to ditch the BB plugin permanently?

YS Yellow Swordfish
Yellow Swordfish
Member

Can you ask them what the BB plugin is actually doing in this instance? And are there any option settings to BB that might be pertinent?

VE veritasnoctis
veritasnoctis
Member

Yellow Swordfish said
Can you ask them what the BB plugin is actually doing in this instance? And are there any option settings to BB that might be pertinent?

I don’t see any option I can activate or deactivate that could be causing the problem. I tried adding /forums to Bad Behavior’s whitelist, but that didn’t work.

I can try to leave a message for the developers in the plugin’s support forum on WordPress.org, but I can’t do any more than rephrase what you’ve explained the source of the problem to be and relay any response back. A technical discussion about the coding involved is beyond me.

MP Mr Papa
Mr Papa
Member

Not much we can do as they are dorking up our form and adding elements. No clue why they are adding form elements. Odd they don’t have a whitelist capability.

VE veritasnoctis
veritasnoctis
Member

Mr Papa said
Not much we can do as they are dorking up our form and adding elements. No clue why they are adding form elements. Odd they don’t have a whitelist capability.

It has whitelist capability. I put /forums in the whitelist field as the instructions directed. But it didn’t work. I think the plugin treats webpages and submission forms separately, so whitelisting /forums might not whitelist the polls on that page.