Report phpVMS 18.104.22.168 (phpVMS 5.5.2 updated for PHP 7.2) in Support Forum Posted August 12, 2020 · Edited August 12, 2020 by SupernovaSurfer 9 hours ago, ProAvia said: There are so many variables that it would be impossible to try to cover them all. No telling why your record is messed up. I've also run into that key constraint error way too many times. True Avia , your code solved most issues, the rest of the issues are my doing while moving hosts etc 😅 2 hours ago, Strider said: Is the airlines table populated? If so, check the code for those to see if it is pointing to the right table. Have you edited any of the code recently? Also have you fixed the problem? Strider thanks, yes it is populated , but you're right its probably a airline code/pilot id related thing , I probably messed that up in the past while dealing with the php version and hosting changes. Thanks for asking Guys...so just for brainstorming...have a look at the following, see what gets mailed when a pirep is filed...issue highlighted in bold A PIREP has been submitted by 0000 ( ) ...etc I'm trying to look at the pirepdata and pilotdata classes for that function return to analyze why it should return that 🙂 Its easy enough to start from scratch , but not giving up yet..I dont delete pilots..so its like 35000 pireps and over 100 thousand hours across 10 years.