beerguts Posted February 8, 2011 Report Posted February 8, 2011 Hello All, I've created a custom profile field through the admin center for VATSIM ID's. I've gone into the member's profile to add their VATSIM ID and get the "saved successfully" message. But when I go out of that screen then back in the data is missing. Any help appreciated. Quote
Administrators Nabeel Posted February 9, 2011 Administrators Report Posted February 9, 2011 Follow the instructions in my sig to enable debug logs, and then once that's done, try saving a custom field, then lemme know, we'll check the logs for any errors Quote
beerguts Posted February 10, 2011 Author Report Posted February 10, 2011 Thanks Nabeel. This is what I am getting.... Backtrace: DB::write_debug > DB::query > PilotData::SaveFields > PilotAdmin->viewpilots > call_user_func_array > MainController::RunAllActions Query: INSERT INTO phpvms_fieldvalues (fieldid, pilotid, value) VALUES (2, 1, '1234567') Error: (1452) - Cannot add or update a child row: a foreign key constraint fails (`mysite/phpvms_fieldvalues`, CONSTRAINT `phpvms_fieldvalues_ibfk_2` FOREIGN KEY (`pilotid`) REFERENCES `phpvms_zzzz` (`pilotid`) ON DELETE CASCADE) ===== The thing is phpvms_zzzz doesn't exist. I believe it was a table used early on to replicate the pilots table but since has been deleted. Quote
Administrators Nabeel Posted February 11, 2011 Administrators Report Posted February 11, 2011 Try this - in the phpvms fieldvalues table, using phpMyAdmin, find this FOREIGN KEY: phpvms_fieldvalues_ibfk_2 Delete that... Probably when the pilots table was duplicated, there was a second key added which didn't get removed. The error is coming from that field values action though, so that's a good thing Quote
beerguts Posted February 21, 2011 Author Report Posted February 21, 2011 Perfect! Thanks Nabeel 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.