Bug to get wp config file
-
Hi,
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';
to
$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)
Viewing 1 replies (of 1 total)
- The topic ‘Bug to get wp config file’ is closed to new replies.