tnick74 Posted March 24, 2010 Report Posted March 24, 2010 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??? Quote
Administrators Nabeel Posted March 24, 2010 Administrators Report Posted March 24, 2010 Did you make any changes to the database? Fresh install? Quote
tnick74 Posted March 25, 2010 Author Report Posted March 25, 2010 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 Quote
Administrators simpilot Posted March 25, 2010 Administrators Report Posted March 25, 2010 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. 1 Quote
tnick74 Posted March 25, 2010 Author Report Posted March 25, 2010 hm....hope it will this way in the new skin..... 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.