Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

share|improve this question

closed as too localized by toscho Feb 3 at 21:44

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

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?

share|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 '12 at 9:25
Agree with @Ashfame, notices, whilst not detrimental to the operating environment, can be signs of a larger issue. Also, it could help to notify the plugin developers of this (as well as your version of WordPress when the notices took place). – OleVik Jan 9 at 14:24

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