One of our sites has an issue, where uploads, comments and posts will randomly duplicate during posting. As I say it's random, usually uploads, posts and comments will work fine.
We have a separate SQL and Web server running Litespeed. Both are managed servers.
The issue started very suddenly after some settings changed on both servers and both were rebooted. The next morning the duplicate issue was apparent. The host reverted all changes. However the issue didn't go away.
Our host focused on the web server and at first blamed Litespeed, however LS was reinstalled and LS engineers re-configured the installation and the problem persisted, PHP and Apache were also reinstalled. Settings have been tweaked over and over for the past 6 weeks but the issue remains.
Eventually the entire web server was swapped but didn't resolve the issue. SQL settings were also tweaked to death and finally tried a stock install but the issue remains.
When duplicates of the uploads occur, the browser says sending, waiting and then after a while it says sending again. When this happens, the upload posts several times rather than once. The upload usually consists of title, description, screenshots and another file of some kind. Though the issue can occur when simply uploading a small image. During successful uploads, the browser says sending, waiting and then I'm taken to my new upload.
Our comments system uses Ajax, on occasions I've posted a comment and the ajax loader pops up to tell me that my comment is being posted, but it just hangs. I've waited for up to 5 minutes. When I refresh the page, the comment HAD been posted and had a time stamp from 4 minutes ago. It appears the SQL server hadn't send the response back?
The host wants to blame our code, however no changes have been made to the comments or posting scripts. No changes were made to the upload script around the time the issue started to happen, however we reverted the code to an earlier version and eventually rewrote the code but it had no effect.
The only thing left that I can think of, is the hardware on the SQL server. HDD, ram or some kind of comms port?
If you have an information that maybe able to help us diagnose the issue, I'd be eternally greatful. It's been 6 exhausting weeks and it's also upsetting our members.