At 4, this morning, I started receiving two tickets every ~10 minutes. The subject of the ticket is "osTicket Fatal Error" and the body is "Unable to connect to the database"
I've been searching to no avail. One thing I found was someone mentioning that the only time that very generic error message occurs is in main.inc.php. It's also an error message for two specific errors.
I took a bit of liberty and split it in two. Now it appears as follows:
if (!db_connect(DBHOST,DBUSER,DBPASS)) {
$ferror='Unable to connect to the database dbconnect';
}elseif(!db_select_database(DBNAME)) {
$ferror='Unable to connect to the database select';
Now, in theory there is no error which simply says "Unable to connect to the database" as both have either dbconnect or select added onto the string. So, I'm still getting these tickets being generated, but the message is "Unable to connect to the database" no select, no dbconnect. So I figured that that string must appear somewhere in the files of the program. So I downloaded the whole tickets folder. I did a multi-file search for that string, and came up with only the two instances above. Strange, so where is it generating that error string? I have no idea.
However, if it can't connect to the database, as it's claiming... how can it generate a ticket? How can I log into the system and see the old tickets, and the new error tickets it's generating, and even tickets that are being generated by actual users (by email)? I'm confused.
The only thing I can think of that can be causing this is that yesterday morning, our host migrated to a new server. One of the first level support staff tried to help us out. Didn't seem to get anywhere, but tried, something that's important in a good host. She's passed it along to a higher level of support.
Seeing as our host migrated us to a new server, you're probably wondering...
$DBHOST = localhost