Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
in Q2A Core by
reshown by

Error 1452: Cannot add or update a child row: a foreign key constraint fails (`jwancouk_ukq`.`qauk_posts`, CONSTRAINT `qauk_posts_ibfk_1` FOREIGN KEY (`userid`) REFERENCES `qauk_users` (`userid`) ON DELETE SET NULL)


I have installed two Q&A sharing the same user table. I get the above error when a new user tries to post a question one one of the sites.

I've tried for some time to figure out how to solve it but I'm a developer. Any help would be appreciated. Thanks.


Q2A version: 1.5

Please log in or register to answer this question.