Invalid Request by Submitting
-
Dear All,
After filling out a page it receives a message: Invalid request, and the test results are not saved in the results database.
What could be the reason for this?
Thank you in advance for your help,
Sincerely, AnnaThe page I need help with: [log in to see the link]
-
Hi @jezykjurek ,
I hope this email finds you well.Thank you for reaching out regarding the issue you are encountering with the QSM plugin. I understand the situation, as I faced a similar problem previously. To resolve this, please follow the troubleshooting steps below:
- Navigate to the Result Pages section in the quiz you have created.
- Open the result template you have created.
- On the right side of the quiz settings panel, locate the field labeled “Or, redirect the user by entering the URL below” in the last column.
- Ensure this field is empty—do not input any URL or undefined text. You can refer to this screenshot for clarity: Screenshot Link.
By making these adjustments, you should no longer encounter the “Invalid Request” error. The result page will display correctly and save the results in the database as expected.
Please let me know if these steps resolve your issue or if you need further assistance with any aspect of the QSM plugin. I’m here to help!
Thank you for your time and cooperation.
Best regards,
Dear Dhanush,
Thanks for your reply and hint.
I have checked and unfortunately all the tests (10 in total) have the blank field you mention.I would also like to add that previously the tests were saving and adding themselves to the database (I already have dozens of them), and it has only been about a week since the previous setting stopped working.
Do you have any more ideas what could be the reason for this?
Thank you in advance for your help.Regards,
Anna
Dear Dhanush,
Have you thought of any other reasons that could cause this error?
Best Regards,
Anna
Dear @jezykjurek ,
I hope you are doing well. I apologize for the delay in getting back to you.
I understand that all 10 tests you created are encountering the same issue. To address this, we have escalated the matter to our development team. They are currently reviewing the result page section and investigating the invalid request errors.
We appreciate your patience as our team works to identify the root cause and provide a resolution. Once we receive further updates or any necessary steps for your QSM section, I will inform you promptly.
Thank you for your understanding and cooperation. Please don’t hesitate to reach out if you have any additional questions in the meantime.
Best regards,
DhanushDear Dhanush,
After deactivation of the QSM-reCaptcha plug-in, saving the results works correctly, in all tests on the site.
Please let me know when I can enable this plug-in again.
Thank you.Hi @jezykjurek ,
I hope this message finds you well. Thank you for your prompt response and initiative in exploring alternative solutions to resolve the issue. I’m pleased to hear that disabling the reCAPTCHA addon temporarily resolved the problem.Upon review, our development team has identified and addressed the issue by making CSS changes to the QSM code. The updated code is now functioning as expected. I have attached a screenshot with the highlighted
else if
conditions on line 55 for your reference.For the time being, I kindly request you to apply these changes manually. You can do this by updating the file located in
QSM > JS > qsm-quiz.js
. Once the changes are applied, you may safely reactivate the plugin.
For detailed guidance, here is the screenshot as follows: https://paste.pics/SEL9M
Once the changes are applied, you may reactivate the plugin safely. Rest assured, a permanent solution will be included in the upcoming plugin update.We greatly appreciate your patience and understanding as we work to enhance the plugin’s functionality. Should you encounter any difficulties or require further assistance, please don’t hesitate to reach out.
Thank you for your time and cooperation.
Best regards,
DhanushDear Dhanush,
Thank you for the information – unfortunately I cannot look at the attached link directing me to the instructions (the message appears: Origin is unreachable. Error code 523).
Could you please send me here the code, that I should use?
Thank you.
Regards,Dear @jezykjurek ,
I hope this email finds you well.
Thank you for your prompt response earlier. I apologize for any inconvenience caused by the code link I previously shared.
To clarify, I am sharing the updated code snippet below. This needs to be applied in the QSM > JS >
qsm-quiz.js
file, specifically at line 55 under the specified conditions.else if (jQuery(‘.qsm-quiz-container-‘ + quizID + ‘ #timer’).val() == 0) {
qsmTimerInterval[quizID] = setInterval(function() {
qsmTimeTakenTimer(quizID)
}, 1000);
}
Kindly review and let me know if further clarification or assistance is needed from my end.I greatly appreciate your cooperation and time in resolving this matter.
Thank you once again, and I look forward to your response.
Best regards,
DhanushHi Support,
I continue to get the invalid request error even after adding below code as suggested. Here’s the test page https://civildigital.com/quiz/test-2/. Issue is resolved with reCAPTCHA is disabled.
I purchased the full version only for this plugin and now it is causing issues.
Please assist. TIA.
else if (jQuery('.qsm-quiz-container-' + quizID + '#timer').val() == 0) {
qsmTimerInterval[quizID] = setInterval(function() {qsmTimeTakenTimer(quizID)}, 1000);
}Dear @anandjose2000 ,
I hope you’re doing well. Thank you for your prompt response regarding the issue you reported.
I sincerely appreciate your efforts in implementing the suggested codes and apologize for the inconvenience caused from our end. Our development team has identified the issue causing the “Invalid Request” error and has resolved it. The fix will be included in the next update of the QSM plugin.
As you’ve already disabled reCAPTCHA as a temporary measure, no further action is needed on your part at this time. Once the latest version is released and updated, this issue will be resolved, and you can re-enable reCAPTCHA without encountering errors.
We truly value your purchase of the full version and appreciate your patience as we address this matter. If you have any additional concerns or are facing issues in other areas of the QSM plugin, please feel free to let me know, and I’ll be happy to assist.
Thank you for your time and cooperation.
Best regards,
DhanushHi @anandjose2000 @jezykjurek ,
I hope this email finds you well.Regarding the issue related to the invalid request, I believe this matter has been addressed and resolved on our support thread. Therefore, I would like to proceed with marking this ticket as resolved.
If you have any further questions or require additional assistance, please feel free to reach out at any time. We would be more than happy to assist you.
Thank you for your time, cooperation, and understanding.
Best regards,
Dhanush
- You must be logged in to reply to this topic.