Posted by bstoppel on May 28, 2009 at 9:05pm
My Setup
Drupal 6.10
Services 6.x-1.x-dev
AMFPHP 6.x-1.0-beta1
XMLRPC Server 6.x-1.x-dev
Views Service 6.x-1.x-dev
Views 6.x-2.5
The problem
I set up a view to pull a certain content type out with relevant info. It works great in Views. All of the information is visible when I preview it inside of views. When I try views.get within Services, the result is an empty array. There aren't any error messages. Just an empty array - Array().
What am I doing wrong?
Comments
views_service.inc
A bit more information.
I added print_r($view) right below $view->execute(); in the function views_service_get() of views_service.inc . The array that is returned is huge and contains the keys for the view data, but no actual values. Weird. Ideas?
(bump)
I've done a few hours of hunting around to figure this problem out and still haven't figured it out. Anyone have any ideas?
possible solution
I had this same problem when integrating Flex and Drupal. My connection was working fine but it returned a null object similar to what happened with you. I fixed it by changing my permissions for anonymous users to "load any node data," "access services" and "access views." My connection works great now and returns all the nodes in my view. This problem suddenly appeared for me and I don't remember resetting my permissions to break it the first time so it was weird and frustrating. Hope this helps.
Quasi-sovled.
This is now working. I'm not sure exactly what solved this problem. My permissions were set properly. I did upgrade my Views module as well as other futzing around with Drupal....
I've only experienced this
I've only experienced this issue when flash connects as an anonymous user and the view doesn't return any results for anonymous users
Similar problem here
Hi,
couple of days ago everything was working just fine, but since yesterday a stumbled upon the following issue,
when using views I can display Nodes if I choose "node" at row style, but if I use "fields" I get the exact number of fields I should get, but they are all empty, be it Nid, type, body, title, etc...
I ran the query views model generates and it work fine on my DB (MySQL)
I'm not using any flash o Flex that I know of, mine is pretty much default drupal installation running with a jquey Gallery.
I've already updated my views modules as well as my drupal core.
This keeps happening with every node of every content type.
Is there a restriction when using row style node?
any clues where I'm messing up?
is there any info I can provide that can help you help me?
thanks in advance :)
I was running across this
I was running across this problem using the views.get service. It sounds to me like you're having this problem on your actual site. Does the gallery require the views.get service?
When was the last time the cronjob ran and have you tried clearing your cache (either truncate the cache table in phpmyadmin or going to admin/performance "clear cached data")? Sometimes that helps fix glitches I see. I'm not a Drupal expert but I'll try to help if i can.
solved my issue
I found my error, I had commented "the only line!!!!" in the views-view-field.tpl.php file while experimenting with the javascript gallery.
Thanks for the help though :)