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

php-ext fails to execute views

3 replies [Last post]
  • Login or register to post comments
Wed, 02/06/2013 - 06:09
fenster.ben
Offline
Joined: 02/06/2013
Groups: None

Hi,

I am using the php-ext sdk and i can use every command except executing a view, the view is located in production and dev sections and running via couchbase admin console and direct url calls but not threw the sdk call.

here is a sample code i tried for testing:

echo $cb->set('test111',1);

try{

$cb->view('queue_items','getClickCount');

} catch (Exception $e){

    print_r($e);

}

and i get back the following response:

16669274182636666880CouchbaseServerException Object ( [message:protected] => [0, ] [string:Exception:private] => [code:protected] => 0 [file:protected] => /var/www/events/test2.php [line:protected] => 33 [trace:Exception:private] => Array ( [0] => Array ( [file] => /var/www/events/test2.php [line] => 33 [function] => view [class] => Couchbase [type] => -> [args] => Array ( [0] => queue_items [1] => getClickCount ) ) ) [previous:Exception:private] => [xdebug_message] => ( ! ) CouchbaseServerException: [0, ] in /var/www/events/test2.php on line 33 Call Stack #TimeMemoryFunctionLocation 10.0126236704{main}( )../test2.php:0 213.8317265800Couchbase->view( ???, ??? )../test2.php:33 )

 

as you can see the set operation works and returns

16669274182636666880

but the view is triggers a 

CouchbaseServerException

 

relevant php info data:

image of view working on admin console:

PLS HELP !!!!!!

 

 

Top
  • Login or register to post comments
Thu, 02/07/2013 - 07:24
tgrall
Offline
Joined: 09/05/2012
Groups: None

Hello,

I have tried the same code on my machine without being able to reproduce (I have a different version of PHP, I am still in 5.3).

May be to help us debug the problem you can try with the following sample code:
- https://github.com/couchbaselabs/DeveloperDay/tree/master/PHP

Have you looked at this post about support of PHP 5.4 ?
http://eugenioz.blogspot.fr/2013/01/installing-php-54-couchbase-server-2...

I have pointed the owner of the PHP SDK to your question to see what could be done.

__________________

Tug
@tgrall

Top
  • Login or register to post comments
Fri, 02/08/2013 - 10:27
fenster.ben
Offline
Joined: 02/06/2013
Groups: None

i installed the client by compiling it from source and all the commands are working and that is why it seem so strange to me that just a particular command will not work.
i will create a test environment for testing the beer example code and see what happens although i dont think it will work as well, any ideas on what could go wrong with the server or client that will make the views unavailable for the SDK ?
also it would be great to know:
what kind of OS do you use for the clients/servers ?
what versions of packages and client source do you use ?

Top
  • Login or register to post comments
Fri, 02/08/2013 - 10:28
fenster.ben
Offline
Joined: 02/06/2013
Groups: None

i installed the client by compiling it from source and all the commands are working and that is why it seem so strange to me that just a particular command will not work.
i will create a test environment for testing the beer example code and see what happens although i dont think it will work as well, any ideas on what could go wrong with the server or client that will make the views unavailable for the SDK ?
also it would be great to know:
what kind of OS do you use for the clients/servers ?
what versions of packages and client source do you use ?

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