Closed (duplicate)
Project:
Protected Node
Version:
5.x-1.0
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Mar 2008 at 13:28 UTC
Updated:
1 Apr 2008 at 06:15 UTC
Hi, i found out that there is a problem with running the cron job for nodes that are protected by password.
If a user has created a protected node and the admin is running the cron job (run cron manually) he hase to type in the password of a node ... and therefore the cron job could not complete.
Comments
Comment #1
osopolarThis will happen if you have to reindex the search index.
1. reindex search: /admin/settings/search -> reindex site
2. run cron
There is a hook update_index.
If you have a look at the node.module: node_update_index() line 2505 you will see that there the function drupal_render($node->content); is called. I think this will invoke the protected_node_nodeapi with $op=='view'. And therefore you will be redirected: drupal_goto('protected-node', 'from=' . $node->nid);
I don't know how to fix this. the best would be neither to redirect nor to build the body. But how do we know that the node is built for update_index?
Comment #2
mtolmacs commentedDuplicate of #170915 (http://drupal.org/node/170915). 5.x.-1.x-dev is fixing this. Please test that version
Comment #3
mtolmacs commented