Contact Form sends duplicate emails
-
Two or three emails at the same time, from one submission.
-
I’m trying to post the access logs, but it seems to be rejected. Very interesting. It seems there are multiple POST requests!
Update: Not rejected. Just shifting comments page. Confused.
Update 2: Now my comment with the logs are gone, after I updated it for a typo. What is happening on this forum?
Update 3: I see. The log lines contains links, too many.
-
This reply was modified 7 years, 12 months ago by
Knut Sparhell.
-
This reply was modified 7 years, 12 months ago by
Knut Sparhell.
-
This reply was modified 7 years, 12 months ago by
Knut Sparhell.
Not possible to post the logs (20 long lines). Tried four times. Gone/removed every time.
Extract:
There are eight POST requests to the form page made form same IP just 2 seconds apart. From such device:
Mozilla/5.0 (Linux; Android 4.4.4; C5503 Build/10.5.1.A.0.283) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/112.0.0.20.70;]
How can this happen?
Trying again. Take a look:
158.58.*.* - - [07/Mar/2017:21:53:55 +0100] "GET /2017/sminkekurs-for-magedansere/ HTTP/1.1" 200 15710 "https://m.facebook.com/" "Mozilla/5.0 (Linux; Android 4.4.4; C5503 Build/10.5.1.A.0.283) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/112.0.0.20.70;]" 158.58.*.* - - [07/Mar/2017:21:53:58 +0100] "POST /2017/sminkekurs-for-magedansere/?wc-ajax=get_refreshed_fragments HTTP/1.1" 200 612 "https://example.com/2017/sminkekurs-for-magedansere/" "Mozilla/5.0 (Linux; Android 4.4.4; C5503 Build/10.5.1.A.0.283) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/112.0.0.20.70;]" 158.58.*.* - - [07/Mar/2017:21:53:59 +0100] "GET /?gdbc-client=3.1.4-1488920038246 HTTP/1.1" 200 1707 "https://example.com/2017/sminkekurs-for-magedansere/" "Mozilla/5.0 (Linux; Android 4.4.4; C5503 Build/10.5.1.A.0.283) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/112.0.0.20.70;]" 158.58.*.* - - [07/Mar/2017:21:55:06 +0100] "GET /kursene/sminkekurs-for-magedansere/ HTTP/1.1" 200 13801 "https://example.com/2017/sminkekurs-for-magedansere/" "Mozilla/5.0 (Linux; Android 4.4.4; C5503 Build/10.5.1.A.0.283) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/112.0.0.20.70;]" 158.58.*.* - - [07/Mar/2017:21:55:08 +0100] "GET /?gdbc-client=3.1.4-1488920107931 HTTP/1.1" 200 1707 "https://example.com/kursene/sminkekurs-for-magedansere/" "Mozilla/5.0 (Linux; Android 4.4.4; C5503 Build/10.5.1.A.0.283) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/112.0.0.20.70;]" 158.58.*.* - - [07/Mar/2017:21:55:45 +0100] "GET /kurs/pamelding/ HTTP/1.1" 200 13667 "https://example.com/kursene/sminkekurs-for-magedansere/" "Mozilla/5.0 (Linux; Android 4.4.4; C5503 Build/10.5.1.A.0.283) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/112.0.0.20.70;]" 158.58.*.* - - [07/Mar/2017:21:55:47 +0100] "GET /?gdbc-client=3.1.4-1488920146187 HTTP/1.1" 200 1707 "https://example.com/kurs/pamelding/" "Mozilla/5.0 (Linux; Android 4.4.4; C5503 Build/10.5.1.A.0.283) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/112.0.0.20.70;]" 158.58.*.* - - [07/Mar/2017:21:55:48 +0100] "POST /wp-admin/admin-ajax.php HTTP/1.1" 200 272 "https://example.com/kurs/pamelding/" "Mozilla/5.0 (Linux; Android 4.4.4; C5503 Build/10.5.1.A.0.283) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/112.0.0.20.70;]" 158.58.*.* - - [07/Mar/2017:21:58:29 +0100] "POST /kurs/pamelding/ HTTP/1.1" 302 - "https://example.com/kurs/pamelding/" "Mozilla/5.0 (Linux; Android 4.4.4; C5503 Build/10.5.1.A.0.283) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/112.0.0.20.70;]" 158.58.*.* - - [07/Mar/2017:21:58:33 +0100] "GET /kurs/pamelding/?contact-form-id=513&contact-form-sent=1640&_wpnonce=a711817156 HTTP/1.1" 200 11623 "https://example.com/kurs/pamelding/" "Mozilla/5.0 (Linux; Android 4.4.4; C5503 Build/10.5.1.A.0.283) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/112.0.0.20.70;]" 158.58.*.* - - [07/Mar/2017:21:58:34 +0100] "POST /kurs/pamelding/ HTTP/1.1" 302 - "https://example.com/kurs/pamelding/" "Mozilla/5.0 (Linux; Android 4.4.4; C5503 Build/10.5.1.A.0.283) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/112.0.0.20.70;]" 158.58.*.* - - [07/Mar/2017:21:58:36 +0100] "POST /kurs/pamelding/ HTTP/1.1" 302 - "https://example.com/kurs/pamelding/" "Mozilla/5.0 (Linux; Android 4.4.4; C5503 Build/10.5.1.A.0.283) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/112.0.0.20.70;]" 158.58.*.* - - [07/Mar/2017:21:58:36 +0100] "POST /kurs/pamelding/ HTTP/1.1" 302 - "https://example.com/kurs/pamelding/" "Mozilla/5.0 (Linux; Android 4.4.4; C5503 Build/10.5.1.A.0.283) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/112.0.0.20.70;]" 158.58.*.* - - [07/Mar/2017:21:58:37 +0100] "POST /kurs/pamelding/ HTTP/1.1" 302 - "https://example.com/kurs/pamelding/" "Mozilla/5.0 (Linux; Android 4.4.4; C5503 Build/10.5.1.A.0.283) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/112.0.0.20.70;]" 158.58.*.* - - [07/Mar/2017:21:58:41 +0100] "POST /kurs/pamelding/ HTTP/1.1" 302 - "https://example.com/kurs/pamelding/" "Mozilla/5.0 (Linux; Android 4.4.4; C5503 Build/10.5.1.A.0.283) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/112.0.0.20.70;]" 158.58.*.* - - [07/Mar/2017:21:58:43 +0100] "POST /kurs/pamelding/ HTTP/1.1" 302 - "https://example.com/kurs/pamelding/" "Mozilla/5.0 (Linux; Android 4.4.4; C5503 Build/10.5.1.A.0.283) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/112.0.0.20.70;]" 158.58.*.* - - [07/Mar/2017:21:58:44 +0100] "POST /kurs/pamelding/ HTTP/1.1" 302 - "https://example.com/kurs/pamelding/" "Mozilla/5.0 (Linux; Android 4.4.4; C5503 Build/10.5.1.A.0.283) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/112.0.0.20.70;]" 158.58.*.* - - [07/Mar/2017:21:58:44 +0100] "POST /kurs/pamelding/ HTTP/1.1" 302 - "https://example.com/kurs/pamelding/" "Mozilla/5.0 (Linux; Android 4.4.4; C5503 Build/10.5.1.A.0.283) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/112.0.0.20.70;]" 158.58.*.* - - [07/Mar/2017:21:58:51 +0100] "GET /kurs/pamelding/?contact-form-id=513&contact-form-sent=1647&_wpnonce=2b019a7b54 HTTP/1.1" 200 11623 "https://example.com/kurs/pamelding/" "Mozilla/5.0 (Linux; Android 4.4.4; C5503 Build/10.5.1.A.0.283) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/112.0.0.20.70;]" 158.58.*.* - - [07/Mar/2017:21:58:56 +0100] "GET /?gdbc-client=3.1.4-1488920335121 HTTP/1.1" 200 1707 "https://example.com/kurs/pamelding/?contact-form-id=513&contact-form-sent=1647&_wpnonce=2b019a7b54" "Mozilla/5.0 (Linux; Android 4.4.4; C5503 Build/10.5.1.A.0.283) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/112.0.0.20.70;]"
Oh! Suddenly all my failed comments was approved after all. Sorry for the duplicates.
This is definitely odd, and shouldn’t be happening. It doesn’t happen in my tests, and it doesn’t seem to happen every time for you either. All I can think about right now is that maybe you have a caching layer that’s getting in a way? Do you use a caching plugin, or a caching solution in your server setup?
Solved
@knutsp Could you let me know how you solved it? It may help others as well!
Yes – how solved? Same issue here and I would love a lead on a solution. Glad to see this post is fairly fresh too.
It’s not solved. The cause is that the user or the browser actually has sent many post requests in a row. So this is not a bug in Jetpack or any other plugin.
Hi there,
For a while now, contact form 7 submissions are coming as double email messages (two emails of the same). What can be the issue?
I had this same problem. Duplicate emails from every form entry. The solution was changing settings on my caching plugin.
-
This reply was modified 7 years, 12 months ago by
- The topic ‘Contact Form sends duplicate emails’ is closed to new replies.