Previous Thread
Next Thread
Print Thread
Hop To
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
C
journeyman
journeyman
C Offline
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
R
Former Developer
Former Developer
R Offline
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.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
3 members (rootman, Gizmo, Nightcrawler), 562 guests, and 186 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)