Skip to main content
NorrNext Anniversary. We've been around for 10 years! Celebrate with us and get a 20% discount. Coupon code: ANNIVERSARY10

#181 vote issue

Posted in ‘NorrCompetition’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information (available for public)

PHP version
8.1

Latest post by nabis on Monday, 18 August 2025 15:09 EEST

nabis

Hello,

I have an issue with voting in my contest.
Here is what I have already checked:

Permissions for Public and Guest are set to Allow for voting.
The voting period (from–to) is configured correctly.
Voting is enabled in the contest settings.
Despite this, users still cannot vote.

Could you please advise what else might be causing this problem?

Thank you in advance for your help.

Best regards,

Kris

sulpher

Hi Kris,
Thanks for your question. It is nice to see the progress with voting contest set up on your site.

When a user tries to vote and see the error message (Request failed), the browser console shows a 406 Not Acceptable response. This means that the server was not able to provide a valid reply in the format expected by the browser.

Issue Summary

The request works when opened directly in the browser (GET), but fails with 406 Not Acceptable when sent via JavaScript (POST).

This confirms the issue is caused by the LiteSpeed/ModSecurity firewall (WAF).

Why it Happens

  • The POST request has a larger payload (~35 KB) and includes parameters such as task=participant.ajaxVote that trigger a security rule.
  • With a direct GET request, the firewall does not detect a problem, so the response is returned normally.

In short, this is a server-side security configuration issue, not an software bug, and it needs to be addressed at the hosting/server level.

Solution

  1. Check the ModSecurity audit log to see which rule ID is triggered.
  2. Whitelist or disable that specific rule for this request/URL.
  3. If you are on shared hosting, ask your hosting provider to adjust the WAF rules for this script: index.php?option=com_competition&task=participant.ajaxVote (e.g., the affected path: index.php?option=com_competition...).

nabis

Thank you for your kind words. I'm working quickly because I recently came up with this event: a costume roller skating event with a competition with prizes for the best costume in three age categories at the end of summer. I've already talked to city representatives, and they're very positive about the idea. I'm just waiting for the mayor's approval. But I'm already working on it :) Sorry for writing on Sunday, this is the last time today. I'll try to resolve the voting issue with the hosting provider tomorrow. Best regards.

nabis

Good morning

I managed to fix it, voting is working. I'd just like some help with sharing on FaceBook.

Best regards, Kris

sulpher

Hi Kris,

We are glad to hear the problem has been resolved. What exactly did you do on your side? We are curious to know if it was LiteSpeed / ModSecurity firewall as we expected.

Regards,
Eugene

nabis

Hello

The person from the hosting helped me. I didn't do anything, I just described the problem. I know they were doing something with the security mod.

Support information

Support hours: You can get our help: Monday - Friday / 09:00 to 17:00 (GMT+3), but not limited. Our staff is pleased to provide Premium support to every paid subscriber asap, but sometimes you should be ready to wait for our reply for up to 3 days.


Our time: / Your time:

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. We also ask you to remove temporary credentials at your site after the problem is resolved. Thank you.

Support of free extensions is not provided on this forum. Please submit your questions or report issues via Github tracker. See link on the product page.