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

None of the lines added in the configuration file from Wordpress (wp-config.php), as the integration information page tells (http://www.question2answer.org/wordpress.php) is running.

They are the following:

define('COOKIEPATH', '/');                                                                                                                                  
define('COOKIE_DOMAIN', '.mydomain.com');

/** To allow redirection from WordPress login to Question2Answer **/
add_filter('allowed_redirect_hosts', 'qa_wordpress_redirect_hosts');                                                                                        
                                                                                                                                                            
function qa_wordpress_redirect_hosts($content) {                                                                                                            
    $content[] = 'questions.mydomain.com';                                                                                                                   
    return $content;                                                                                                                                        
}  

The first section (COOKIEPATH) give me the following error in the browser:

The constant "COOKIE_DOMAIN" is defined (probably in wp-config.php). Please remove or comment out that define() line.

The redirection section, show nothing in the browser, simply.

My Wordpress version is 3.5.1 with multisite enabled.

My Question2Answer version is 1.5.4

Both of them are the last version available.

Can you help me?

Thank you

 

Q2A version: 1.5.4
by
what is your wordpress and Q2A path to each other? Means Is WP is main site and Q2A is in sub directory or reverse?

1 Answer

0 votes
by

Wordpress path:

/var/www/wordpress

Q2A path:

/var/www/sites/question2answer

 

It's managed by Wordpress Multisite with Domain mapping with subdomains.

by
Still little confuse. You mean your wordpress site is on root www/wp-load.php is here...( where wp-config.php ) and your q2a site is www/sites/q2a/ is that right?
by
I'm going to try explain better:
- My root site is a Wordpress multisite in the path "/var/www/sites/multisite/" (what is a symbolic link to "/var/www/wordpress") with a "wp-config.php" file.
- My QA site is in the path "/var/www/sites/question2answer".

I have created a site in my multisite administrations sites with the name "questions", but it can't manage de QA, because as I told, the Wordpress integration not run (the lines give me errors).

Then, I have create a new virtual host in my Apache http Server named "questions.mydomain.com", that redirect to QA path ("/var/www/sites/question2answer").

When I try manage the "questions" subdomain site with Wordpress, it go to the QA path, and I can manage it.

It's not elegant, but it's running.

I think that it's not relationed with my problem, but you know the complete scenario now, as you want.
...