The taxonomy.selectNodes call returns an array with the proper number of elements but the elements are emtpy. For instance, if I search for nodes with term 17, and I've got two nodes with that term ID attached to it, it returns an array of two elements, but both elements are emtpy.

Sample Output:
Array
(
[0] =>
[1] =>
)

All of the optional arguments are left blank.

I'm running on Drupal 6.4 with Views 2, CCK and the Date API modules.

Thanks

Comments

haleagar’s picture

Ditto problem confirmed.
pager value also seems to have no effect.

haleagar’s picture

I am totally un-aware of how drupal or services works yet, I don't even rightly know PHP :/
so I'm not sure if this is the file to fix this in, but

but in taxonomy_service.inc
line 22 returns nothing.
$nodes[] = services_node_load(node_load($node), $fields);

node_load($node->nid) gets the full node.
so my new line 22 is:
$nodes[] = services_node_load(node_load($node->nid), $fields);
and all is exactly as expected

haleagar’s picture

almost all is as expected, as noted elsewhere if you choose no pager then it defaults to a 10 item limit. This looks like it is in the Taxonomy Module code not Services. and perhaps I'm missing something, well obviously I'm missing something since I don't see how I can request the next page in either case.

marcingy’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Slimer’s picture

Status: Closed (fixed) » Fixed

Will somebody put this in release code?
The problem was solved October 29, 2008, but still no on release in february 2009 :(

P.S. how to do this?)

marcingy’s picture

Status: Fixed » Closed (fixed)

This is fixed in head - please see note on the homepage.

labwire’s picture

Status: Closed (fixed) » Fixed

The provided solution did not work for me. This is the change I made to fix the bug:

Line 22 of taxonomy_service.inc:

$nodes[] = services_node_load(node_load($node), $fields);

Change To:

$nodes[] = services_node_load(node_load(array('nid' => $node->nid)), $fields);
marcingy’s picture

Status: Fixed » Closed (fixed)