|
|
Joined: Jun 2006
Posts: 215
enthusiast
|
enthusiast
Joined: Jun 2006
Posts: 215 |
I don't know what happened to my forum. After doing some server migration , all users cannot post. It shows "The form you have submitted is no longer valid. " Why !!???
What is do_form_check() doing in ubbt.inc.php ?
Why the same code runs OK in old server but failed in another server?
what should I do now ???
English is not my native language. I try my best to express my thought precisely. I hope you understand what I mean. If any misunderstanding results from culture gaps, I apologize first.
|
|
|
|
Joined: Jun 2006
Posts: 215
enthusiast
|
enthusiast
Joined: Jun 2006
Posts: 215 |
I have to modify the return value of do_form_check() to : "return $doomed == $check ? true : [:"red"]true[/] ; " So my forum works again.
But I know it is wrong ,it seems some security form check , and shouldn't be skipped.
What should I do now ?
English is not my native language. I try my best to express my thought precisely. I hope you understand what I mean. If any misunderstanding results from culture gaps, I apologize first.
|
|
|
|
Joined: Jun 2006
Posts: 215
enthusiast
|
enthusiast
Joined: Jun 2006
Posts: 215 |
It seems do_form_check() is checking each form's form_key value.
I am sure in each template file , I didn't modify the hidden field of each form. Each form has its form_key , and with random generated value.
But I still don't know why it doesn't work ???
English is not my native language. I try my best to express my thought precisely. I hope you understand what I mean. If any misunderstanding results from culture gaps, I apologize first.
|
|
|
|
Joined: Jun 2006
Posts: 215
enthusiast
|
enthusiast
Joined: Jun 2006
Posts: 215 |
sorry , I found the problem. In the new server , I forgot to build the session directory.
English is not my native language. I try my best to express my thought precisely. I hope you understand what I mean. If any misunderstanding results from culture gaps, I apologize first.
|
|
|
|
Joined: Jun 2006
Posts: 73
journeyman
|
journeyman
Joined: Jun 2006
Posts: 73 |
I have a similar problem, but I'm using cookies instead of sessions. My users can post, but only if it's kinda short. Long posts can result in the above error when submitted. How do I fix this?
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
The actual form key is stored in the sessions directory even when using cookies. It could be that your sessions are expiring quite often, sooner than your users can finish their post. If you have access to your php.ini file you can try upping your session.gc_maxlifetime. If this is quite low it can lead to the problem.
|
|
|
|
|
|