Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

Problem getting results from view

2 replies [Last post]
  • Login or register to post comments
Wed, 06/20/2012 - 08:08
atm188
Offline
Joined: 06/06/2012
Groups: None

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

Top
  • Login or register to post comments
Fri, 06/22/2012 - 22:08
atm188
Offline
Joined: 06/06/2012
Groups: None

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.

Top
  • Login or register to post comments
Wed, 02/06/2013 - 05:23
fenster.ben
Offline
Joined: 02/06/2013
Groups: None

I have the exact same problem !!!
did you manage to solve it ?

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker