After I updated from 4.6.1 to 4.6.2 captchas for anonymous comments does not display anymore. I have checked and rechecked the settings.

For anonymous user registration etc. they work as before.

Comments

arnabdotorg’s picture

captcha works fine with Drupal cvs which has got the same security patches as 4.6.2, so I'm not sure this is happening because of the security patches.

I think this is because you've forgotten to re-patch the comment.module file with the patch for comment captchas. Can you please confirm this?

-Arnab

frjo’s picture

I have patched the comment module like this. I tried to follow the "comment.module_7.patch" from http://drupal.org/node/14708.

  // Note: format is checked by check_output().
    $edit['subject'] = truncate_utf8(decode_entities(strip_tags(check_output($edit['comment'], $edit['format'], TRUE))), 29, TRUE);
  }

  // Validate the comment's body.
  // Invoke other validation
  module_invoke_all('comment', 'validate', $edit);
  if ($edit['comment'] == '') {
    form_set_error('comment', t('The body of your comment is empty.'));
  }

  // Validate filter format
  // format selector
  $form .= filter_form('format', $edit['format']);

  // Invoke other forms
  $form .= implode('', module_invoke_all('comment', 'form', $edit));

  // preview button:
  $form .= form_hidden('cid', $edit['cid']);
arnabdotorg’s picture

Can't seem to reproduce this, I have the same patches, things seem to be fine...

frjo’s picture

So it's something wrong with my install then.

After having deleted all traces of the captcha module (from the variable table etc.) and starting over it seems to be working now.

I think this is the first "weird" problem I have had with Drupal.

Thanks for trying to help!

frjo’s picture

Status: Active » Fixed
arnabdotorg’s picture

Category: bug » support
Status: Fixed » Closed (fixed)

I think this is the first "weird" problem I have had with Drupal.

Heh, ok :)

Closing support issue.

--Arnab