php-ext fails to execute views
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 !!!!!!
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 ?
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 ?
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