Hi! I'm having one of these "Cron failed" problems and it likely is caused by comment_nodeapi() in comment.module. The reason I think that this is the case is that one problematic node has A LOT of comments and when I remove the following line (line 619)

$text .= '<h2>'. check_plain($comment->subject) .'</h2>'. check_markup($comment->comment, $comment->format, FALSE);

the issue is gone and the node is finally indexed. This problem basically makes cron/search unusable and therefore should be solved. Here is the calling order:

search_cron()
node_update_index()
_node_index_node()
node_invoke_nodeapi()
comment_nodeapi()

If you have the same issue you can do the following until a good solution is out:

- Limit the number of comments. For example by attaching something like " LIMIT 10" to the sql statement in line 617

- Clear your cache.

- Manually execute the following SQL statements

DELETE FROM "variable" WHERE name = "cron_semaphore";
DELETE FROM "variable" WHERE name = "cron_last";

Comments

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.