I use Scheduler first time and everything seems to be running well. However Scheduler deletes the content of every ckk-taxonomy-field publishing the node. I use content_taxonomy for displaying terms. Everyone with a similar problem? Any solution?

Comments

eric-alexander schaefer’s picture

Are you sure this happens with scheduler 5.x-1.16? This problem was already fixed in 5.x-1.13 (#230836: CCK date field shows blank after the node is published.)?

miweb’s picture

Yes, I'm sure.

Problem is still unsolved.

eric-alexander schaefer’s picture

Status: Active » Closed (won't fix)

I've dug a bit in this problem and I am convinced that this is not a scheduler problem. Here is why:

There were similar problems reported with scheduler.module in cooperation with other modules that had additional node data.
I believe the problem was a missing 'load' case in hook_nodeapi().
See #346269: unpublished nodes, #230836: CCK date field shows blank after the node is published. and #271279: Scheduler clears cck fields for reference.

Basically all scheduler is doing for publishing is this:

D5:

$nodes = db_query($select_statement);
while ($node = db_fetch_object($nodes)) {
  $n = node_load($node->nid);
  $n->changed = $node->publish_on;
  $n->status = 1;
  node_save($n);
}

D6:

$nodes = db_query($select_statement);
while ($node = db_fetch_object($nodes)) {
  $n = node_load($node->nid);
  $n->changed = $node->publish_on;
  $actions = array('node_publish_action', 'node_save_action');
  $context['node'] = $n;
  actions_do($actions, $n, $context, NULL, NULL);
}

So if a module does not respect the $op == 'load' in hook_nodeapi() special node values for this module don't get loaded in the node_load() line in the code above.

So you might want to talk to the CCK people (I have no knowledge about the CCK internals) and point them back to this issue for reference.
I will help where I can, but for now I deny any blame on scheduler. ;-)