invalid form security token error after completing new user registration

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
nerdtron
Posts: 5
Joined: 09 Oct 2018, 15:01

invalid form security token error after completing new user registration

Post by nerdtron »

When a new user registers an account on our MantisBT installation, they get the activation Email, click it and fill in the real name and password and then click "Update User". After doing this they are always presented with this error.
APPLICATION ERROR #2800
Invalid form security token. This could be caused by a session timeout, or accidentally submitting the form twice.
...
I just reproduced this again myself and can confirm that timeout wouldn't be an issue, I got the Email, clicked the link, quickly typed in the info and clicked Update User. I also made sure that I wasn't doing it twice.

I found the below, which just suggests updating to the latest version, however our version is much newer than what was reported there.

https://mantisbt.org/forums/viewtopic.php?t=20595

The below link refers you to the admin manual.

https://mantisbt.org/bugs/view.php?id=14122

The admin manual refers to a PHP setting, gc_maxlifetime which it says defaults to 24 mins. That's way above the timeframe involved in my testing. As I said I'm clicking the link immediately when receiving it, spending a few seconds or so typing in the field values and then clicking Update User.

It also mentions the possibility of turning $g_form_security_validation off but then mentions that this would be a security risk.

I checked the related PHP settings. So it is the default of 24 mins which should be way higher than needed for what I experienced in my test.
session.gc_divisor 1000 1000
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
Has anyone conquered this one? :)

VERSION INFO:
Apache 2.6.32
MySQL 5.6.39
PHP 5.6.36
MantisBT 2.17.1
JLi
Posts: 9
Joined: 26 Jun 2018, 12:12

Re: invalid form security token error after completing new user registration

Post by JLi »

Did you manage to solve this one?
tet-com@freemail.hu
Posts: 22
Joined: 07 Feb 2019, 11:44

Re: invalid form security token error after completing new user registration

Post by tet-com@freemail.hu »

Hi I have the same issue.
All the suggestion not help any.
It is very serious problem, because I type a lot, after clicked the send button, I lost everything.

Please help!!
tet-com@freemail.hu
Posts: 22
Joined: 07 Feb 2019, 11:44

Re: invalid form security token error after completing new user registration

Post by tet-com@freemail.hu »

Hi ,
tonight all of my new users have the same issue:
they get the activation Email, click it and fill in the real name and password and then click "Update User". After doing this they are always presented with this error.
APPLICATION ERROR #2800
Invalid form security token. This could be caused by a session timeout, or accidentally submitting the form twice.

So the first time users, and they did it on 1 minute.
I tried to delete all the cookies, but did not helped.

PLEASE HELP.
I have never meet these kind of problem, with another web applications.
Post Reply