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("127.0.0.1", "username", "password");
print_r($cbm);
$info = $cbm->getInfo();
print_r($info);

The getInfo() call fails with:

[Sat Nov 23 12:23:18 2013] [error] [client 127.0.0.1] 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?

Michael.

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.
Anyone?

3 Answers

« Back to question.

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).

Michael.

« Back to question.

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

« Back to question.

No one? It's been a week...