Title: Voting broken
Last modified: December 2, 2018

---

# Voting broken

 *  Resolved [dater](https://wordpress.org/support/users/dater/)
 * (@dater)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/voting-broken/)
 * [@natekinkead](https://wordpress.org/support/users/natekinkead/),
    what do you
   mean by “Visitors can only vote once on each topic or reply”? I set up a hidden,
   members only forum and each member still can **vote endless**. Is this wanted?
   Or am i the only one with this issue?

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

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

 *  Plugin Author [natekinkead](https://wordpress.org/support/users/natekinkead/)
 * (@natekinkead)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/voting-broken/#post-10939997)
 * There are 2 ways someone can endlessly vote right now.
 * 1) The user has the “administrator” role. I use the code `current_user_can('administrator')`
   for that check.
 * 2) Users are clearing their cookies, using multiple browsers, or logging in an
   incognito window in order to vote again.
 * I realize this plugin is still in an early stage because it could use some refinement
   like storing it in the usermeta if logged in, but it doesn’t really solve the
   problem of public visitors spamming the votes by clearing cookies between each
   vote.
 *  Thread Starter [dater](https://wordpress.org/support/users/dater/)
 * (@dater)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/voting-broken/#post-10941136)
 * Sorry [@natekinkead](https://wordpress.org/support/users/natekinkead/),
    i registered
   a normal user (subscriber, participant) and he can vote own and admin posts endlessly.
   Do you need some help? This module is needed for my site, so i have a small budget
   for it.
 *  Plugin Author [natekinkead](https://wordpress.org/support/users/natekinkead/)
 * (@natekinkead)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/voting-broken/#post-10947540)
 * Thanks for pointing out this issue. I was able to see the same issue. The good
   news is that the functionality that I was talking about was in place and preventing
   actual subsequent votes from happening, but the problem is that the javascript
   was unaware and was acting like the votes were happening.
 * In other words, if you voted up 10 times on the same reply, you would see a “
   10” as the score, but then if you refreshed, you would see the actual score is“
   1”.
 * Anyway, I fixed this issue and released a new version, 1.1.2.
 * FYI, I integrated another requested feature which was to have labels for the 
   up and down votes. You can change the text of the labels using filters like this…
 *     ```
       add_filter('bbp_voting_helpful', function() {
           return 'Thanks';
       });
       add_filter('bbp_voting_not_helpful', function() {
           return 'No Thanks';
       });
       ```
   
 *  Thread Starter [dater](https://wordpress.org/support/users/dater/)
 * (@dater)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/voting-broken/#post-10949269)
 * Now you have to reload or revisit the page to vote again.
    Statistics are only
   displayed before voting. I think i will remove the labels with your filters.
 *  Plugin Author [natekinkead](https://wordpress.org/support/users/natekinkead/)
 * (@natekinkead)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/voting-broken/#post-10951893)
 * Just updated to 1.1.4 which removes unlimited voting from administrators and 
   also added a filter to not just change the labels text, but to disable the labels.
 * `add_filter('bbp_voting_show_labels', '__return_false');`
 *  Thread Starter [dater](https://wordpress.org/support/users/dater/)
 * (@dater)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/voting-broken/#post-10953225)
 * Thanks for removing the admin exception and adding the show_labels filter.
    But
   voting is still broken: – when reloading page the status resets. – when voted,
   arrows grey out and the cursor shows a symbol. But again i can vote endless.
 *  Plugin Author [natekinkead](https://wordpress.org/support/users/natekinkead/)
 * (@natekinkead)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/voting-broken/#post-10954729)
 * The score should not be resetting. Do you have static page caching? If so, that
   might be the reason why it would be resetting. If you clear cache, you would 
   see the new scores. I’ll do some testing later, but nobody should be able to 
   vote endlessly anymore.
 *  Thread Starter [dater](https://wordpress.org/support/users/dater/)
 * (@dater)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/voting-broken/#post-10957775)
 * OK, i think i broke it with a security plugin setting. I found a working installation.
   I will check this later on. Can you tell in the meanwhile if there needs to be
   access to an interface like XML-RPC, admin-ajax.php or something like this?
 *  Plugin Author [natekinkead](https://wordpress.org/support/users/natekinkead/)
 * (@natekinkead)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/voting-broken/#post-10959738)
 * It does use admin-ajax.php for standard WordPress AJAX functionality.
 *  Thread Starter [dater](https://wordpress.org/support/users/dater/)
 * (@dater)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/voting-broken/#post-10967979)
 * I investigated this further more and found 3 strange behaviors:
 * 1) I had a look at the ajax response, which is “Success!” for **every** vote 
   on the broken systems. The working system responds with a “Not allowed to vote
   twice”.
 * 2) It runs on my self installed server, not at my hoster.
 * 3) On the broken systems the mouse arrow changes it’s symbol to a forbidden symbol
   when voted twice or more. The working one stays normal.
 * I checked all security settings and deactivated or deinstalled every module. 
   No change.
 *  Plugin Author [natekinkead](https://wordpress.org/support/users/natekinkead/)
 * (@natekinkead)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/voting-broken/#post-10970220)
 * All the things you mentioned are features of the plugin that I purposely developed.
   What exactly is the problem you’re having?
 * What do you mean by “self installed server” vs “hoster”?
 *  Thread Starter [dater](https://wordpress.org/support/users/dater/)
 * (@dater)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/voting-broken/#post-10984264)
 * I use two different servers, one is hosted by a company, the other one is a own
   LAMP system running in my LAN.
 * Have a look [here](http://sys-x.net/forums/topic/test/) at my broken dev system
   hosted by a company. Unlimited voting is possible.
 * Do you only base on cookies? For logged in users you should write the vote to
   the database. This solves the clearing cookies problem for members only sites.
 * Additionally there should be an option to allow voting only when logged in. As
   you can see, you can’t reply, but vote.
 *  Plugin Author [natekinkead](https://wordpress.org/support/users/natekinkead/)
 * (@natekinkead)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/voting-broken/#post-10984731)
 * Oh, that’s strange. I looked at your site and it is not allowing any cookies 
   to be stored. That’s why it’s letting you repeat votes.
 * I think the browser is not storing cookies because the site is not using SSL.
 * I’ll look into a better solution to work around that issue as well as your other
   feature requests.
 *  Thread Starter [dater](https://wordpress.org/support/users/dater/)
 * (@dater)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/voting-broken/#post-10988355)
 * It works on my old debian 8 system so i think it is maybe a problem with the 
   php version. SSL and cookies dont interfere IMHO.
 *  Thread Starter [dater](https://wordpress.org/support/users/dater/)
 * (@dater)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/voting-broken/#post-10992243)
 * It has something to do with the PHP from my hoster.
    I changed PHP from 7.2.11
   to 5.6.38 and it works. I changed it back and it still works. I think i got the
   cookie now. After restarting my browser (deletes all cookies) its broken again.

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

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

The topic ‘Voting broken’ is closed to new replies.

 * ![](https://ps.w.org/bbp-voting/assets/icon-128x128.png?rev=3410351)
 * [bbPress Voting](https://wordpress.org/plugins/bbp-voting/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bbp-voting/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bbp-voting/)
 * [Active Topics](https://wordpress.org/support/plugin/bbp-voting/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bbp-voting/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bbp-voting/reviews/)

 * 17 replies
 * 2 participants
 * Last reply from: [natekinkead](https://wordpress.org/support/users/natekinkead/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/voting-broken/page/2/#post-11082897)
 * Status: resolved