MattW
Well-known member
I've been trying to help get to the bottom of a double posting issue, and we've been able to reproduce it. It's happening when deferred.php is being called, and it's causing the browser to lock, and just display the loading icon in the top right. People are then posting again, causing a double post. If you refresh the page, the post has been submitted, and also a draft copy saved in the editor.
I've removed all the code from the templates (public and admin) to trigger deferred.php, and run it from a cron. I'm still seeing it being called though when posting messages:
What else could be calling deferred.php, and is there any way to try and figure why it's stalling in the browser?
The server itself isn't running into any resource issues, load is always below 1, and PHP has enough time allocated to run (300 seconds), along with a high enough memory limit.
I've removed all the code from the templates (public and admin) to trigger deferred.php, and run it from a cron. I'm still seeing it being called though when posting messages:
Code:
MYIP - - [29/Jun/2016:00:01:52 -0400] "POST /talk/threads/new-test-thread.155136/add-reply HTTP/1.1" 200 2494 "http://www.hearth.com/talk/threads/new-test-thread.155136/page-2" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Ge
cko/20100101 Firefox/47.0"
MYIP - - [29/Jun/2016:00:01:53 -0400] "POST /talk/deferred.php HTTP/1.1" 200 22 "http://www.hearth.com/talk/threads/new-test-thread.155136/page-2" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0"
What else could be calling deferred.php, and is there any way to try and figure why it's stalling in the browser?
The server itself isn't running into any resource issues, load is always below 1, and PHP has enough time allocated to run (300 seconds), along with a high enough memory limit.