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

hi, i am using Q2a latest version, installation is successful with wordpress i used it (define('QA_WORDPRESS_INTEGRATE_PATH', '/PATH/TO/WORDPRESS');) on www.mysite.com/qa but other user cannot post any question, i can. they faces a problem like this.

Question2Answer query failed:

INSERT INTO qa_posts (categoryid, type, parentid, userid, cookieid, createip, title, content, format, tags, notify, created) VALUES (NULL, 'A', 2, '4', NULL, INET_ATON('::1'), NULL, 'ere you can ask questions and receive', '', NULL, '@', NOW())

Error 1452: Cannot add or update a child row: a foreign key constraint fails (`shihabpress`.`qa_posts`, CONSTRAINT `qa_posts_ibfk_1` FOREIGN KEY (`userid`) REFERENCES `qa_users` (`userid`) ON DELETE SET NULL)

 

please help me

1 Answer

0 votes
by
Looks like the database was set up for internal user management, and you only added WordPress integration later on. Does that make sense?

Welcome to the Q&A site for Question2Answer.

If you have a question about Q2A, please ask 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

...