Hello for some days I am trying to testing the wordpress hyperdb. http://wordpress.org/extend/plugins/hyperdb/ I Have taken three server with 2 node each at vps.net with centos each.

server1 = appserver server2 = masterdbserver server3 = slavedbserver

At first I took server2 and server3 and did replication with this following tutorial

http://cloudservers.rackspacecloud.com/index.php/MySQL_replication_-_Master/Slave

and tested that the replication is ok.

Then I have installed apache and php to server1 with this tutorial http://cloudservers.rackspacecloud.com/index.php/CentOS_-_Apache_and_PHP_install and install a freash copy of wordpress 3.1

I have give proper grant privileges to both master and slave server from my app server. and both database server are successfully connecting from my appserver individually.

Then to implement the hyperdb I have coppy the db.php file to wp-content folder and place the db-config.php file to root (where wp-config.php) with proper master and slave db information.

I have changed the db info in wp-config.php to check and tested that the master db and slave db are connecting nicely from my appserver.

but after implementing hyperdb whenever I am go to my site with my appserver IP address to browser nothing but only a blank page is showing.

I could not find any problem whats going wrong. Is there any thing I have to change to db-config.php? I have just input the master and slave db info there. or I am missing something? Can anyone help me out?

Thanks in advance.

link|improve this question

67% accept rate
feedback

1 Answer

Hey after activating the WP_DEBUG I have found that I am not using '' (inverted comma) when defining db info on db-config.php. After inserting the values successfully The site is loading and now I am testing is hyper db is working.

but one problem is I am getting this warnning message (as WP_DEBUG is true)


Notice: Undefined variable: use_master in /var/www/html/wp-content/db.php on line 362

Notice: Undefined property: hyperdb::$write in /var/www/html/wp-content/db.php on line 432

Notice: Undefined offset: 1 in /var/www/html/wp-content/db.php on line 467

Notice: Undefined variable: charset in /var/www/html/wp-content/db.php on line 532

Notice: Undefined variable: collate in /var/www/html/wp-content/db.php on line 532

Notice: Undefined variable: use_master in /var/www/html/wp-content/db.php on line 362

Notice: Undefined variable: use_master in /var/www/html/wp-content/db.php on line 362

Notice: Undefined variable: use_master in /var/www/html/wp-content/db.php on line 362

Notice: Undefined variable: use_master in /var/www/html/wp-content/db.php on line 362

Notice: Undefined variable: use_master in /var/www/html/wp-content/db.php on line 362

Notice: Undefined variable: use_master in /var/www/html/wp-content/db.php on line 362

Notice: Undefined variable: use_master in /var/www/html/wp-content/db.php on line 362

Notice: Undefined variable: use_master in /var/www/html/wp-content/db.php on line 362

what I am missing?

link|improve this answer
They are just notices not errors. You can safely ignores these. Just switch off wp-debug. – Brady May 8 '11 at 21:41
Ideally, you should fix them instead of ignoring. – Ashfame Apr 28 at 9:25
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.