Registration problem

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

Did you make any changes to the database? Fresh install?

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

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 Like

hm…hope it will this way in the new skin…