redeclare add_db_server() error
-
Hi Ron,
First, I would like to command you on this awesome plugin.
I am running into the following error “”NOTICE: PHP message: PHP Fatal error: Cannot redeclare add_db_server() (previously declared in /ho**********/db-settings.php:85) in /ho**********/db-settings.php on line 85” and I am wondering if you have any input on a possible fix?Below is code on line 85:
function add_db_servers($ds, $part, $dc, $read, $write, $host, $lhost, $name, $user, $password) {
global $db_servers, $db_ds_parts;if ( empty( $lhost ) )
$lhost = $host;$server = compact(‘ds’, ‘part’, ‘dc’, ‘read’, ‘write’, ‘host’, ‘lhost’, ‘name’, ‘user’, ‘password’);
$db_servers[$ds][$part][] = $server;
$db_ds_parts[$name] = “{$ds}_{$part}”;
}
- The topic ‘redeclare add_db_server() error’ is closed to new replies.