I have Webform 6.x-3.10 on a Drupal 6.22 installation. Sometimes (maybe about 20% of the time) submissions are saved in duplicate, usually one to two minutes apart. I'm guessing it's probably not a bug in Webforms, but either another module or something up with the server interfering, but I'm not savvy enough to know what kinds of things to look for. I thought it might be related to cron runs, but I don't see a direct correlation with runs and duplicates, though I haven't yet ruled cron out. It looks like it's been going on a long time, even through an update from an earlier version of Webforms to 6.x-3.10. Has anyone experienced something similar, or have any ideas about what might lead to this kind of behavior?
Thanks!
Comments
Comment #1
quicksketchI'd encourage you to upgrade to the latest version (3.15), though I don't think it would have any effect on this particular problem.
The most common cause of double submission is simply a user double-clicking the Submit button. Having the submissions minutes apart is unusual though, as once a user goes to the confirmation page (node/x/done), their POST request is usually discarded and they shouldn't be able to resubmit the form. Is this a single page form? And where is the form redirecting when a user is done? When testing, can you find a way to use the "Back" button in your browser that makes it prompt to resubmit the POST request again?
Comment #2
axxint commentedIt is a single page form - there are quite a few single page forms on the site that have experienced the duplicate issue. The submission success redirect is the webform page again (with blank values) that has a success message at the top. I can indeed use the browser back button and submit the form again, getting a similar result. And it may be user error, but I have noticed that a number of duplicates happen on a "2" to "4" minute schedule (11:22 to 11:24, 9:42 to 9:44, etc.) which makes me think something with the server may be involved, and no duplicates have ever been further apart than two minutes. I'll post back if I figure anything more out with either a Webforms update or any other route. Thanks!
Comment #3
quicksketchI'm going to close this issue after a lack of activity.
I've seen other similar problems recently with database replication going awry (when the database tries to copy from the Master to the Slave server, it ends up making a duplicate record), you might look into that as a possibility.