Problem getting results from view
Wed, 06/20/2012 - 08:08
Hi,
I finally managed to get php-ext dp2 to work and was able to do the basic set and get functions. From the administrator console, I created and published a view to production and was able to get the desired results from the browser. However, when I tried to get the results via $cb->view("design_doc","view_name") in php, I keep getting the following error:
Warning: Couchbase::view(): Failed to execute view: Protocol error in ....
There was no problem in getting results from the built-in view $cb->view("_all_docs", ""). Not sure what I'm doing wrong here. Anyone can help?
Thanks
Has anyone been successful in getting a valid result response from a view query with php-ext?
Problem is that the php-ext v1.1.0-dp2 downloaded from www.couchbase.com/develop/php/next couldn't work with any version of libcouchbase.so I have from couchbase.com, or any version that I compiled - from dp2 to dp7. I have to compile php-ext from source.
This is what I have setup in couchbase admin:
and:
Like I said, view("_add_docs","") works. What is wrong with view("rec","view_name")?
I'm really stucked. Any help would be appreciated.