Does it happen with just a certain schedule or all? It is possible the DB version is causing some funkiness to happen, but it logging in seems to mean that it is not the DB version causing it, as if it was, you wouldn’t be able to log in either. Make sure the flight number is being put in exactly like it is in the DB, and that stray numbers are not added by you or something else. Try deleting the kacars_free module and data class file and upload the ones from your site from a one you know works. Also try reducing the PHP version to 7.1 it is possible that that is causing it too. Try to see if there are any errors in the error_log file to see if that sheds any light on it.
Yeah, Ithought it was weird being able to log in but not retrieve flights.
Already tried php 7.0 and 7.1 without success.
Also tried multiple flight numbers - no spaces or odd characters - double and triple checked.
No errors show in the error_log file. Error logging is on, but not sure how vmshost is set up for logging of errors. Something more to look at there.
Every flight number entered, when requesting the flight info, the receive.xml show flightStatus2. Same if I bid a flight and change kACARS to not use Search by Flight #.
Great idea about trying my working kACARS module file and data class file - something to try over the weekend.
One other thing is I can set up a charter flight and start it.
In comparing the send.xml files when connected to his site and then connected to my site, his doesn’t fully populate the send.xml with all the data for the selected flight.
Now to find out why…
Oddly, this shows below the ACARS Map on his site. It’s the correct data for the flight I put in kACARS. Notice the pilot number is incorrect (happens with any pilot).
Looks like it is not assigning the login to any pilot, or is not fully logging the pilot in. I had that happen to me before. It is possible that the php version is incorrect for kacars free Try a lower php version, when someone is using it, check the db and see what it says for the flight, also try clearing the acars table, use the reset acars table in the admin of the site.
I noticed his acars table is quite long, so may be some bad data there.
PHP version is 7.2 - I also tried 7.0 and 7.1 without success.
On my site, it works just fine with 7.2
Also uploaded his site files and DB to my hosting. kACARS_Free still doesn’t work with his files and DB on my host. So it’s not his host, it’s something in his files or database.
UPDATE - I married an older DB backup from May 2022 to his site files. kACARS works as it should.
This means the site owner compromised the DB while adding schedules, aircraft, airports, etc. thru the admin panel - most probably the schedules table has numerous errors in it.
I am hoping he kept good logs of exactly what he did.
Just another reason to ALWAYS do a backup of your DB and site files anytime you change anything…
Thanks to all who offered help/advice - both here and on Discord - with this issue!
That being said, updating schedules shouldn’t cause that problem. My only thought would be he changed something to do with the schedule id, or flight number or both.