Me again, LOL.
I think my PHP/MySQL, SaaS, business management application is dropping a connection, but I am not sure how to debug it.
I recently upgraded the entire suite, (hundreds of script files) from PHP5x to PHP7x and the problem seems to have started after the upgrade. The basic issue is as follows.
There is an "application" page which allows customers to apply for a certain number of "products". There are a number of steps in the process, and when the user completes the process there are a number of database "insert"s.
1. User / Customer information record is entered into one table
2. "Application" record are entered into another table
3. "Sales" record, referencing customer application is entered into another table
4. "Logistics" record is created in yet another table
Every once in a while I get an "application" but there is no "sales" record tied to it (One was never created, neither were the other downstream records). The only thing I can think of is that the function is being terminated / interrupted before it completes.
Similarly, when a user logs in to the system, they enter their username and password on the Login page. On the next page (License Agreement), they need to agree to the license terms. I have noticed on occasion that after agreeing to the license terms, the browser will display "can not connect to server". Refreshing the page takes the user back to the "License Agreement" page. Accepting the agreement again, proceeds to the correct page.
So, it appears that a connection may be dropping.
How do I figure out where or why? Is it a server issue? Could it be a programming issue? (It's not repeatable and works 95% of the time.)
Thank you.