Jump to content

Recommended Posts

Posted

hello,

when a new pilot tries to register, the following message appears:

"Error Registering

Cannot add or update a child row: a foreign key constraint fails (`tecagr_phpvmsTECA`.`phpvms_pilots`, CONSTRAINT `phpvms_pilots_ibfk_1` FOREIGN KEY (`code`) REFERENCES `phpvms_airlines` (`code`) ON UPDATE CASCADE)"

any help please???

Posted

No changes in database. The only change i made is that i removed the drop down menu for choosing a hub from the registration form, as i do not want this to appear when registering.

I restored the original templates and it worked. When removing the hub choice, it happens again

  • Administrators
Posted

Make the hub selection into a hidden field with a default value on the registration form. Then you can assign a hub in the admin panel when you approve the application. The hub is a required field in the registration process so you have to have something there, or change the registration module code and database structure.

  • Like 1

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...