Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter tiracles

    (@tiracles)

    Today , for subdomain B I’ve created an alternative wp-config file named wp-config2.php. Is exactly a clone from the original, except that I changed the prefix tables for the one I need ( The prefix tables from the plugin in subdomain A). After that I went into the plugin files and I replaced

    if ( ! defined( 'ABSPATH' ) ) {

    ? ? exit; // Exit if accessed directly!

    }

    for

    require_once(ABSPATH . ‘wp-config2.php’);

    $connection = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD);

    mysqli_select_db($connection, DB_NAME);

    I replaced it in every php file, but the plugin, keeps reading the database tables from subdomain B instead of the plugin tables from subdomain A.

    I don’t know what I’ve missing :S

    • This reply was modified 1 year, 6 months ago by tiracles.
    Thread Starter tiracles

    (@tiracles)

    Nice bcworkz, thank you! I’m gonna research that. I will keep you guys updated about it.

    Thread Starter tiracles

    (@tiracles)

    The plugin is supportcandy.

    The tables cannot have the same prefix, as they are from 2 different wordpress installations, in the same database.

    I’m testing inside the plugin code but I cannot see where I could make any effective change on it, The plugin loads the wp enviroment.

Viewing 3 replies - 1 through 3 (of 3 total)