Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
781 views
in Q2A Core by

Checking the error log I found thousands of errors like this:

PHP Question2Answer form security violation for vote by anonymous (key cookie mismatch) on / via http:

PHP Question2Answer form security violation for login by anonymous (key cookie mismatch) on /login?to=402%2Flogin via http:

PHP Question2Answer form security violation for buttons-4860 by anonymous (key cookie mismatch) on /4860/

PHP Question2Answer form security violation for register by anonymous (key cookie mismatch) on /register?to=

And so on.

How can I fix this ?

Thank you.

by
Anyone that can help with this ?

Thank you.

1 Answer

+3 votes
by
selected by
 
Best answer
That just means a form was submitted with invalid data. Most likely, they are just bots. For example, there is no form in Q2A that would be displayed to allow a not-logged in user to vote. However, the first "error" is telling you that such a form was submitted.

Just ignore those errors because they are not errors at all!
by
Those are a lot of logs, but good to know.

Thank you.
by
I've just suggested to update this behavior. Let's see what happens. If it is important for you to get those logs cleaner, you can apply the following change to the core: https://github.com/q2a/question2answer/pull/460/files
by
Thanks for that!
...