Jump to content

Recommended Posts

Posted

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.

Posted

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.

  • Moderators
Posted

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;

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...