Submit button not visible on user register page
whygee - March 9, 2009 - 23:33
| Project: | reCAPTCHA |
| Version: | 6.x-1.1 |
| Component: | General |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
| Issue tags: | CiviCRM recaptcha register profile |
Jump to:
Description
I've installed the reCaptcha module on the user registration form and the submit button seem to have disappeared (the form isn't working).
Have you ever seen this before?
See attached file.
Please note that my website is in French.
Thanks.
| Attachment | Size |
|---|---|
| screenshot.jpg | 230.38 KB |

#1
I've tried with a different theme but the problem is still there...
#2
Im also having the same issue. Drupal 6.10
#3
I looked into this at my website, and found it to be a CiviCRM issue.I opened a case with CiviCRM: http://issues.civicrm.org/jira/browse/CRM-4337
In my case this problem comes from CiviCRM 2.2, which puts a profile section into the registration form, and overrides my Drupal Recaptcha with its own. To test this, turning off CiviCRM immediately fixed the form.
Here is the specific problem as it shows up in the html. The problem comes from this stretch of code in recaptchalib.php (1.10):
In the register form with CiviCRM installed, the Recaptchatlib code is incorrect:
<noscript><iframe src="'. $server . '/noscript?k=' . $pubkey . $errorpart . '" height="300" width="500" frameborder="0"></iframe><br/>';
Resulting in the following, truncated HTML:
<noscript><iframe src="https://api-secure.recaptcha.net/noscript?k=[...]" height="300" width="500" frameborder="0"></iframe><br/>
Editing the civicrm/packages/recaptcha/recaptchalib.php file, Function recaptcha_get_html in CiviCRM fixed the problem. Here is the correct stretch of code:
<noscript><iframe src="https://api-secure.recaptcha.net/noscript?k=...." height="300" width="500" frameborder="0"></iframe><br/>
<textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
<input type="hidden" name="recaptcha_response_field" value="manual_challenge"/>
</noscript>