I have a few forms in a web2py shopping cart that I built from scratch. Most of the time the forms are working fine but once in awhile on submission a form will neither submit and redirect to the next page of the cart nor return any form errors as it usually does when there is a form error.
Instead it simply refreshes the page and clears the form. What's really frustrating about this bug is that the same user will have this bug and when they try again with the same browser and same data it will work fine. In fact, none of my team has been able to reproduce it but three of our users have reported it so I'm inclined to think something is wrong. One thing the forms all in common is that they all add session as an argument for form.accepts: if form.accepts(request.vars, session): Perhaps if something was screwy in my session it might cause this behavior? Although when I looked in the gluon/sqlhtml web2py file it didn't seem to use session for much of anything. The various forms and models are all very long so before posting all of that code, I was wondering if anybody simply had some thoughts on what might be causing this and/or could point me in the right direction. I'll be happy to post any part of the code that would help shed some light on the matter. Let me know, thanks.