I guess I'm reopening this issue, as directed, because I've followed the steps here, as directed:

http://cvs.drupal.org/viewcvs/drupal/contributions/modules/recaptcha/REA...

checked access control, and added form store (why?) and so far:

1. No admin tab at admin/settings/captcha

2. No indication at admin/settings/captcha that recaptcha is activated at all.

3. All I get is the default captca arithmetic challenge.

No PHP errors in the logs.

Drupal 5.1, PHP captcha-5.x-1.x-dev.tar.gz

Comments

robloach’s picture

Category: bug » support

Hmmm, did you try turning off/updating the menu cache?

robloach’s picture

Also be sure to have at least Captcha 2.1.

lambert-1’s picture

1. Yes, I updated the cache (with devel)

2. I'm using captcha-5.x-1.x-dev.tar.gz (The issues thread on the latest version of captcha seems still quite lively.)

robloach’s picture

Get Captcha 2.1. I'll adapt reCAPTCHA to use the new (?) Captcha API once the next release of it officially comes out.

robloach’s picture

Captcha 2.1 seems to be the latest release (both from the development snapshots and official releases. I'll put a note in the readme that 2.1 is required.

robloach’s picture

... Please let me know if this fixes the problem. Worst comes to worst, I can implement the old Captcha API ontop of what's in there already.

BradM’s picture

You definitely need to use the latest version of Captcha, I couldn't get reCaptcha to work without it. However, the latest version of Captcha is buggy as hell, so I reverted back until the outstanding issues are resolved.

robloach’s picture

Title: No tab, no way to tell its activated. » Compatibility with previous versions of Captcha
Assigned: Unassigned » robloach
Category: support » feature

I'm switching this issue to become a request for compatibility with Captcha versions earlier than version 2.1.

robloach’s picture

Assigned: robloach » Unassigned

I'm not going to take on this task. I'm going to, rather, work on fixing the bugs in the current version of the Captcha module. If anyone gets it working with the previous Captcha API, then please feel free to post up a patch.

kthagen’s picture

The backport I just posted for Drupal 4.7.6 uses the old captcha API. In case someone wants to use it for 5.1, I think that dropping the following two hooks in the 5.1 version should do the trick, but I don't have a 5.1 setup to test this myself:

/**
 * reCAPTCHA implementation of hook_captchachallenge
 */
function recaptcha_captchachallenge(&$form) {  
  global $recaptcha_api_server, $recaptcha_api_secure_server, $recaptcha_verify_server;
  @(include_once('recaptcha/recaptchalib.php')) or _recaptcha_library_not_found();
  drupal_add_css(drupal_get_path('module', 'recaptcha') . '/recaptcha.css');
  $recaptcha_api_server = variable_get('recaptcha_api_server',
    isset($recaptcha_api_server) ? $recaptcha_api_server : 'http://api.recaptcha.net');
  $recaptcha_api_secure_server = variable_get('recaptcha_api_secure_server',
    isset($recaptcha_api_secure_server) ? $recaptcha_api_secure_server : 'https://api-secure.recaptcha.net');
  $recaptcha_verify_server = variable_get('recaptcha_verify_server',
    isset($recaptcha_verify_server) ? $recaptcha_verify_server : 'api-verify.recaptcha.net');
        
  $form['captcha_response'] = array (
    '#type' => 'item',
    '#description' => recaptcha_get_html(variable_get('recaptcha_public_key', ''), 
      $_SESSION['recaptcha_error'],
      variable_get('recaptcha_secure_connection', FALSE)),
    '#weight' => 0,
    '#required' => TRUE,
    );
  return $form;
} // function recaptcha_captchachallenge

/**
 * reCAPTCHA implementation of hook_captchavalidate
 */
function recaptcha_captchavalidate(&$captcha_word, &$correct) {
  @(include_once('recaptcha/recaptchalib.php')) or _recaptcha_library_not_found();
  if ($_SESSION['captcha'] != '') {
    $resp = recaptcha_check_answer(
      variable_get('recaptcha_private_key', ''),
      $_SERVER['REMOTE_ADDR'],
      $_POST['recaptcha_challenge_field'],
      $_POST['recaptcha_response_field']
    );
    if($resp->is_valid) {
      unset($_SESSION['recaptcha_error']);
      $correct = TRUE;
    }
    else {
      $_SESSION['recaptcha_error'] = $resp->error;
      form_set_error('captcha_response', t('The reCAPTCHA code you entered was incorrect.'));
      $correct = FALSE;
    }
  }
}
robloach’s picture

Component: Code » Captcha API

Just a note that a new version of Captcha was just released and is much more stable then what it was before.

robloach’s picture

Component: Captcha API » General
Status: Active » Fixed

I'm setting this to fixed, as Captcha 3.x is WAY more stable, and a Drupal 4.7 branch is now around.

Anonymous’s picture

Status: Fixed » Closed (fixed)