@asti I have exactly the same issue on my blog here: https://www.lastminutemusicians.com/blog/reddit-for-musicians/#comments
When you try to vote as a guest (with guest voting enabled) you see an error message - see screenshot.
Thanks in advance!
Hi @lmmuk,
We see some js errors on your website. The issue may come from the cache plugin, you're using. Please try to deactivate the cache plugin and check again.
@Immuk,
If you're voting as a guest under your same IP (for testing purposes), the above error message is correct. Your troubleshooting message: "data: wc_deny_voting_from_same_ip" confirms that.
You will have to use another IP to test your configuration.
Cheers!
Hi, it turns out as our server is behind a Proxy I had to add some extra setup lines to the wp-config file to make sure the remote IP address was correct.
Thanks for your help with this.
Just in case it helps others, this is what I added:
// Use X-Forwarded-For HTTP Header to Get Visitor's Real IP Address
if ( isset( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) {
$http_x_headers = explode( ',', $_SERVER['HTTP_X_FORWARDED_FOR'] );
$_SERVER['REMOTE_ADDR'] = $http_x_headers[0];
}
Im having same issue, when I try new PC, new location, different IP I get same error.
Im using Sucuri.net will a firewall or CDN networj.
I just tried your WP-CONFIG file fix and it worked! wow thanks a bunch!!