0

I am trying to integrate Wordpress with Question2Answer so that they both use the same database for users. The instructions for doing this are pretty straight-forward. All I need to do is define the directory for my Wordpress installation in the Question2Answer config file. Unfortunately, no matter how I define the path to the Wordpress directory, I get a 500 error.

The urls for the installations are:

Wordpress: http://stage.example.com

Question2Answer: http://stage.example.com/ask

The directory structure is

Wordpress: public_html/stage

Question2Answer: public_html/stage/ask

Definition:

define('QA_WORDPRESS_INTEGRATE_PATH', '../');

I've tried 100 different ways to define the path to the Wordpress directory in my Question2Answer config file and I keep getting a 500 error. I'm fairly certain that I am defining the path to the directory correctly so I think it must be some sort of permissions or .htaccess problem but I'm not sure what it could be. Any ideas?

Here is the error:

PHP Question2Answer fatal error: Could not find wp-load.php file for WordPress integration - please check QA_WORDPRESS_INTEGRATE_PATH in qa-config.php

4

1 回答 1

3

这可能很愚蠢,但请记住,整个define('QA_WORDPRESS_INTEGRATE_PATH', '/PATH/WORDPRESS/'); 内容都在注释行中。所以你必须把它放在行*/define

我也很挣扎,直到我看到这个帖子

于 2014-08-17T05:54:07.047 回答