Viewing 4 replies - 1 through 4 (of 4 total)
  • Could you describe how you moved wp-content?

    And could you show me the code you used in the must-use plugin?

    Thanks.

    Thread Starter drewrawitz

    (@drewrawitz)

    So my folder structure looks like this:

    – content
    – wordpress
    index.php
    wp-config.php

    The wordpress folder contains all the core WP files, and inside of content I have my themes folder and plugins folder.

    Inside of my wp-config file I have this:

    if (!defined('WP_SITEURL')) {
    	define('WP_SITEURL', 'https://' . $_SERVER['SERVER_NAME'] . '/wordpress');
    }
    if (!defined('WP_HOME')) {
    	define('WP_HOME',    'https://' . $_SERVER['SERVER_NAME']);
    }
    if (!defined('WP_CONTENT_DIR')) {
    	define('WP_CONTENT_DIR', dirname(__FILE__) . '/content');
    }
    if (!defined('WP_CONTENT_URL')) {
    	define('WP_CONTENT_URL', 'https://' . $_SERVER['SERVER_NAME'] . '/content');
    }

    Regarding the code used in the must-use plugin, I pasted in exactly what was in that forum thread:

    <?php
    add_action("ws_plugin__s2member_after_loaded", "s2_hacks"); function s2_hacks()
        {
            $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["s2o_url"] = site_url("/");
        }
    ?>
    Thread Starter drewrawitz

    (@drewrawitz)

    Just wanted to follow up and see if there was any kind of solution that would at least get my stylesheets to show.

    Thank you very much.

    Thread Starter drewrawitz

    (@drewrawitz)

    In case anyone comes across this issue, I found a solution that will work for now.

    Add this to your .htaccess file
    SetEnv WP_DIR /path/to/wordpress

    Hope that helps someone.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘ERROR: s2Member unable to locate WordPress directory.’ is closed to new replies.