rpalmer800 Posted January 5, 2013 Report Posted January 5, 2013 Hi, For months we have been doing fine, and there were no edits or anything, and just the other day we started getting errors from the registration form. And, we haven't touched that, or the databases recently, so i am clueless as to why it is happening. Error: Error Registering Cannot add or update a child row: a foreign key constraint fails (`vdalairl_phpvms`.`phpvms_pilots`, CONSTRAINT `phpvms_pilots_ibfk_1` FOREIGN KEY (`code`) REFERENCES `phpvms_airlines` (`code`) ON UPDATE CASCADE) Any help would be greatly appreciated. Quote
freshJet Posted January 5, 2013 Report Posted January 5, 2013 I can only suggest contacting your host Quote
WelkaT Posted January 5, 2013 Report Posted January 5, 2013 Is it when you click the registration page or is it after you actually click register ? Quote
rpalmer800 Posted January 6, 2013 Author Report Posted January 6, 2013 Is it when you click the registration page or is it after you actually click register ? After you click the register button Quote
Moderators Parkho Posted January 6, 2013 Moderators Report Posted January 6, 2013 It's the DB issue, I think you're trying to register someone that already exist like an admin. Quote
rpalmer800 Posted January 7, 2013 Author Report Posted January 7, 2013 It's the DB issue, I think you're trying to register someone that already exist like an admin. Yeah, thats what i though at first as well, But now im receiving emails from people saying they cant complete it as well. Im Stumped. Quote
Moderators Kyle Posted January 7, 2013 Moderators Report Posted January 7, 2013 Did you change anything in the database tables such as table colum changes? Although, something for you to try. Back up your database first and run this query.... and see what you got. ALTER TABLE `phpvms_pilots` ADD CONSTRAINT `phpvms_pilots_ibfk_1` FOREIGN KEY (`code`) REFERENCES `phpvms_airlines` (`code`) ON UPDATE CASCADE; Quote
rpalmer800 Posted January 8, 2013 Author Report Posted January 8, 2013 Yeah, we actually just switched to the Simpilot Entrance Exam, and everything seems to be working alright. Thanks Everyone. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.