Php Client views not working! (return "Protocol error")
I tried using the Couchbase Php1.1.0.dp2 and it has been working fine until i tried accessing views using
<?php
$cb = new Couchbase("127.0.0.1:8091", "user", "pass", "default");
$result = $cb->view("design_doc", "view_name");
foreach($result["rows"] as $row) {
echo $row->key;
}
I receive the error "Warning: Couchbase::view(): Failed to execute view: Protocol error in ...." .
Hi dunkspot,
View support doesn't work in dp2 (apart from "_all_docs") and there is a ticket open for that:
http://www.couchbase.com/issues/browse/PCBC-76?page=com.atlassian.jira.p...
Also note that you need to run the latest libcouchbase version to get views up and running from the php driver.
Got the same problem, only even the _all_docs won't work for me on another bucket than default.
$this->_cb->view("_all_docs","");Warning: Couchbase::view(): Failed to execute view: Protocol error in [..]
I'm using the latest libcouchbase with the self-compiled version of php-ext from Github.
Is this a problem with non default buckets and authentication?
_all_docs works with the newest version. BUT only _all_docs fetching data via. views with the sdk doesn't work.
If you click on the views url you get a diffrent port (8092) if you fetch the data via curl works!
I guess behind them works the normal couchdb api.
I asked that same question a couple of weeks ago. No one answered. Looks like the php community here is small.