RedisLab with WordPress Integration Error: PHP Warning: Redis::select() expects parameter 1 to be integer

I am trying to add a redis object cash server with my wordpress site. I am following this article and I’ve crated account in redislabs.com

As per the tutorial, my object-cache.php file has

 define("WP_REDIS_BACKEND_HOST", "HOST_URL");
 define("WP_REDIS_BACKEND_PORT", "12345");
 define("WP_REDIS_BACKEND_DB", "DATABAES_NAME");
 define("WP_REDIS_PASSWORD", "PA$$WORD");

and

347         $this->redis->auth( $redis['password'] );
348
349         if ( isset( $redis['database'] ) ) {
350           $this->redis->select( $redis['database'] );
351         }

But I get this error in line 350

Error

[Sun Apr 30 19:54:30.579728 2017] [:error] [pid 1750] [client
162.158.26.98:21176] PHP Warning: Redis::select() expects parameter 1 to be integer, string given in /var/www/public/wordpress/wp-content/object-cache.php on line 350, referer:
mysite.com/about-us/

Can Anyone help me to solve this?

Thanks In Advance

Ariful

Read more here: RedisLab with WordPress Integration Error: PHP Warning: Redis::select() expects parameter 1 to be integer

Leave a Reply

Your email address will not be published. Required fields are marked *