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

Hi. I'm using SSO and I've configured it using the qa-external-users.php file. I can log in, but when I'm post something, it sends me an error. Apache error logs are telling me this.

[Tue Apr 22 14:03:44 2014] [error] [client 192.168.xxx.xxx] PHP Question2Answer MySQL query error 1452: Cannot add or update a child row: a foreign key constraint fails (`mydb`.`qa_posts`, CONSTRAINT `qa_posts_ibfk_1` FOREIGN KEY (`userid`) REFERENCES `qa_users` (`userid`) ON DELETE SET NULL) - Query: INSERT INTO qa_posts (categoryid, type, parentid, userid, cookieid, createip, title, content, format, tags, notify, name, created) VALUES (2, 'Q', NULL, 'test1', NULL, INET_ATON('192.168.xxx.xxx'), 'hola mundo', '', '', '', '@', NULL, NOW()), referer: http://myhost/qa/ask?cat=
 

Please log in or register to answer this question.

Welcome to the Q&A site for Question2Answer.

If you have a question about Q2A, please ask here, in English.

To report a bug, please create a new issue on Github or ask a question here with the bug tag.

If you just want to try Q2A, please use the demo site.

Categories

...