Support » Plugin: Brozzme DB Prefix & Tools Addons » Bug to get wp config file

  • Resolved Viktor Freitas



    I did the fix using the code below.

    File: brozzme-db-prefix-change/includes/brozzmeDbPSettings.php

    Create a method to get wp config file,

    public function get_wp_config_file() {
        if (file_exists(ABSPATH . 'wp-config.php')) {
            return ABSPATH . 'wp-config.php';
        return dirname(ABSPATH) . '/wp-config.php';

    and change this variable
    $dbprefix_wpConfigFile = ABSPATH.'wp-config.php';
    $dbprefix_wpConfigFile = $this->get_wp_config_file();

    This is necessary because the wp-config.php file may be located a directory before root.

Viewing 1 replies (of 1 total)
  • Plugin Author Benoti


    I just made an update of the plugin including your fix (v1.2).
    Thx a lot

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.