When user submit query through webform, multiple duplicated submissions are created.
By duplicated submissions: I mean the content of those submissions are the exactly the same.
With some duplicated submissions, the created time are the same, somes are slightly different.
With some submissions: the duplicated message amount is 5 , some is 4, 3, 2.
Each duplicated submission has its own id, and send its own message, so admin will receive multiple duplicated emails.
Reproduce rates: not 100%, sometimes it happens sometimes not.
Please check the attached files.
Comments
Comment #1
quicksketchI can't reproduce this problem and it's not been reported by anyone else over the last year. This seems like it may be a site-specific problem caused by either a module conflict or some custom code on your site.
Considering we haven't had any confirming reports, I'm inclined to close this issue. If you're still experiencing this issue in the latest release (3.20), please reopen the issue with instructions on how to reproduce the problem. If the problem isn't reproducible, we aren't able to fix it.
Comment #2
quicksketchComment #3
aharrington commentedComment #4
luca cattaneo commentedHi,
I'm reporting the same problem on different websites using webform 7.x-4.12.
I don't know where to start to reproduce the error because it happens only some times (of course, not when I'm testing it..).
@quicksketch, what do you suggest? Where can I start?
Can be related to some browser?
Thanks a lot!
---
Edit: I've been using webform since a long a time, but this is happening only in the last month.
---
Edit 2: Using the "Per user submission limit" option set to 2/every 5 minutes doesn't solve the problem.
Comment #5
luca cattaneo commentedComment #6
liam morlandTry the latest version of Webform. Is anyone else seeing this? This might happen if someone uses the Back button then submits again, though the timestamp should at least be off by a few seconds.
Comment #7
sohal khatwani commentedHi. We too have noticed this on a few sites. I believe this happens when a user clicks on the submit button more then once or when clicking on the submit button and the form is processing they click on it again. It would be ideal to implement some sort of button disable after the first click to avoid duplication of form submissions. e.g. like drupal commerce does for the payment form. This only happens sometimes.
Comment #8
liam morlandCan you come up with steps to reproduce the problem?
Comment #9
sohal khatwani commentedHi @Liam. Yes, simply click on the submit button more then once when the form is submitting and it will show you two submissions. Sometimes on a longer form it could take a second to submit so a user might click more then once thinking nothing is happening. I tried it on one of our test sites and also on simplytest.me by using on the default webform 7.x-4.14. In both cases I get duplicated submissions. Please see the screenshots attached. It depends on the number of times a person hits on the submit button.
Comment #10
liam morlandThanks. I have observed the problem. This is a core issue and as such a duplicate of #1705618: Double click prevention on form submission.
Comment #11
commonpike commented@Liam , thanks for the pointer, but I'm not sure if it is a duplicate. Notice how @Luca mentions
I have the same. Of course I'm not sure if it has to do with users clicking the button twice. I can't manually repeat it and it only happens llike 1% of the times, but submissions are completely duplicate, users are logged in and *Per user submission limit* is on (1 per user / per day).
Comment #12
liam morlandThat is interesting. I think the way forward is to see if the problem still exists when #1705618: Double click prevention on form submission is committed. If so, this can be re-opened.
Comment #13
liam morlandComment #14
t-loThis is currently taking place on the latest Drupal 8 release
Comment #15
jrockowitz commentedThis feature already exists in Drupal 8.
If there is a bug. Please create a new ticket.
Comment #16
liam morlandThis is a D7 ticket. Only rarely will tickets move between D7 and D8 for Webform since the codebases are completely different.
Comment #17
torotil commentedI see this problem as well on the most recent webform and with the core patch applied. This really happens rarely so I’m not sure I can find a way to reproduce this. Anyway a few more observations:
My current guess is that this might have something to do with navigating back in the browser history and then submitting the form again. Also webform_ajax and the page cache (form_state forking) might have something to do with it.
Comment #18
liam morlandIf someone is using the back button then resubmitting, it could be intentional.
Comment #19
torotil commentedI forgot to mention that some of the fields on the pages with missing data are required. It should be impossible to make submissions without (valid) values for them. That’s why I’d exclude the possibility of legit submissions.
Comment #20
torotil commentedI’m using this query to sift through several databases:
Maybe this helps someone else to find suspicious submissions. It doesn’t take into account that the form configuration might change.
So this is only meaningful if the configuration doesn’t change too often (compared to the number of submissions), which is usually true for our installations.
It seems that this does occur with both webform_ajax enabled and disabled.
Comment #21
DrDaveExeter commentedJust catching up: we're experiencing the same problem (19 identical forms submitted in a minute or so), and I'll work through the solutions suggested. Screenshot: http://sheu.org.uk/sheux/pix/MultipleSubmissions.png
Comment #22
liam morlandAs a support request, closing for inactivity. If this is a bug, this can be re-opened if steps to reproduce can be provided.
Comment #24
rohit tiwari commentedI am facing this issue on my D7 setup.
The reproducing steps are same as mentioned in #7
Comment #25
liam morlandWhat version of Drupal are you running?
Comment #26
rohit tiwari commentedDrupal: 7.92
PHP: 7.4.33
Comment #27
liam morlandThis was fixed in #1705618: Double click prevention on form submission. Update to Drupal 7.98 to get the fix.