CouchbaseClusterManager doesn't work

I’m trying to use the CouchbaseClusterManager to perform certain actions on buckets, but I don’t get passed the instantiation. Whatever I try next, fails.

Here’s an example:

$cbm = new CouchbaseClusterManager(“”, “username”, “password”);
$info = $cbm->getInfo();

The getInfo() call fails with:

[Sat Nov 23 12:23:18 2013] [error] [client] PHP Fatal error:  Failed to get cluster information: Invalid arguments in /path/to/file.php on line 41

I have php-couchbase-ext 1.2.1.

Any ideas?


No one? It’s been a week…

Hey Michael,
What version of libcouchbase and the PHP extension are you using where you are seeing this behaviour?
Cheers, Brett

Hi Brett,

I’ve reproduced this with libcouchbase 2.1.3 (OS X and Amazon Linux) and PHP SDK 1.2.0 (OS X) and PHP SDK 1.1.4dp1 (Amazon Linux).


I have the same problem. I have Couchbase Server Community 2.1.1, and when I do phpinfo() I see in the “couchbase” section, version=1.2.0 and libcouchbase version=2.2.0. Are the installed version not compatible? @michael did you got an answer yet or did you figure it out yourself?

I’m having the same issue. Using CE 2.1.1 with PHP SDK 1.2, libcouchbase 2.2.0.

Did you got the solution? facing same issue on my end!