If some one (like me) has installed Node Comments (http://drupal.org/project/nodecomment) it remplace the table comments and include the comments into the table "node".

The problem is when the cron is running it cause a warning because this line in abuse_cron

db_query("DELETE FROM {abuse_status} WHERE type='comment' AND oid NOT IN (SELECT cid FROM {comments})");

is broken.

For example, in the abuse_cron() I add this lines:

  if (db_query('SHOW TABLES LIKE {comments}')) {
    db_query("DELETE FROM {abuse_status} WHERE type='comment' AND oid NOT IN (SELECT cid FROM {comments})");
  }
CommentFileSizeAuthor
#1 abuse-1309594-1-D6-1.x.patch716 byteskillua99

Comments

killua99’s picture

StatusFileSize
new716 bytes

a patch

avpaderno’s picture

Issue summary: View changes
Status: Active » Closed (outdated)
Issue tags: -cron, -, -display warnings, -cron warning, -abuse

I am closing this issue, since it is for a Drupal version no longer supported.