CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Conflict between Drupal captcha and profiles that require registration
Pages: 1 2 [3]

Author Topic: Conflict between Drupal captcha and profiles that require registration  (Read 10162 times)

jaymcgraw

  • I post occasionally
  • **
  • Posts: 106
  • Karma: 6
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.11
Re: Conflict between Drupal captcha and profiles that require registration
August 03, 2011, 01:07:21 pm
Is work being done to solve this issue in D7/Civi 4?

If I have the CAPTCHA module installed and enabled on Drupal registration and I provide for creating an account with a Civi Profile on a Civi Contribution page, I get the following error: The answer you entered for the CAPTCHA was not correct.


petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Conflict between Drupal captcha and profiles that require registration
August 03, 2011, 03:46:27 pm
are you saying you have recaptcha enabled on the civicrm profile that is set for use on the Drupal Reg page?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

jaymcgraw

  • I post occasionally
  • **
  • Posts: 106
  • Karma: 6
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.11
Re: Conflict between Drupal captcha and profiles that require registration
August 03, 2011, 09:03:00 pm
No, reCaptcha is not enabled on the CiviCRM profile. The Drupal CAPTCHA module is enabled on the Drupal Reg page. When I expose a Civi profile that allows for or requires account creation (no reCaptcha enabled), I get a message stating that the CAPTCHA was not correct even though there's no visible CAPTCHA on the exposed profile form.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Conflict between Drupal captcha and profiles that require registration
August 03, 2011, 09:05:44 pm
you may want to reverse the options then - try recaptcha on the profile, not captcha on drupal reg
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

jaymcgraw

  • I post occasionally
  • **
  • Posts: 106
  • Karma: 6
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.11
Re: Conflict between Drupal captcha and profiles that require registration
August 04, 2011, 05:56:26 am
I thought about that, but it lends itself to the issue that the Drupal Reg will then be unprotected and I need that for other requirements.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Conflict between Drupal captcha and profiles that require registration
August 04, 2011, 06:58:16 am

I'm pretty sure that this has been fixed for D6 / C3.x

However that fix might not be applicable / working in D7 / C4 / Captcha modules for D7

Would be great if you can take a look at the code, debug and patch it so it does work. The relevant code is here:

CRM/Core/BAO/CMSUser.php (search for 'captcha')

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

jaymcgraw

  • I post occasionally
  • **
  • Posts: 106
  • Karma: 6
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.11
Re: Conflict between Drupal captcha and profiles that require registration
October 19, 2011, 07:24:30 pm
Changing line 530 in CRM/Core/BAO/CMSUser.php seems to fix this issue.

From

Code: [Select]
unset($form['captcha']);
to

Code: [Select]
unset($form['actions']['captcha']);

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Conflict between Drupal captcha and profiles that require registration
October 20, 2011, 06:13:59 am

can u please file an issue and attach this patch

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Vandalf

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 0
Re: Conflict between Drupal captcha and profiles that require registration
November 07, 2011, 03:02:11 pm
Y-E-S!!!!! *there really should be some "party-hatted" smiley available for these cases* ;)
 
@jaymcgraw: THANK YOU!!! That fixed it for me! It has only taken my weekend and two more days to figure this one out. My back is aching, but now I'm in a state of total bliss! This was goo-ood!

However, I'm not really sure what this does? Could you give a short explanation? I'd be extremely grateful! :)
In any case, THANKS A TON! :)

mclyde

  • I post frequently
  • ***
  • Posts: 171
  • Karma: 3
    • International Society for Bayesian Analysis
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 6.x
  • MySQL version: 5.136
  • PHP version: 5.2.16
Re: Conflict between Drupal captcha and profiles that require registration
May 04, 2012, 02:55:11 pm
I am encountering the same problem with D6 and Civi 4.1.2 for event and membership registration

civic profile for Name and Address is used for Event Registration and  Drupal Profile.   No reCaptcha turned on for Civi, but do use Captcha (Mollum module) for Drupal user registration and other public form submission

Anon  may register for events and create a profile in civi permissions.  Drupal Ccount creation is required with event registration and

After submitting the profile, user goes to Verification page.  there is an (i) Your Profile is not saved and Account not Created message at teh top of the screen
Clicking Continue  leads to  error "Word verification is required"

The  fix above for D7/C4:

Quote
From

Code: [Select]
unset($form['captcha']);
to

Code: [Select]
unset($form['actions']['captcha']);

in CRM/ Utils/System/Drupal.php or  CRM/Utils/System/Drupal6.php   did not fix this

Any other suggestions?    ANyone else run into this?    Will try to dig some more...
Merlise Clyde

Pages: 1 2 [3]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Conflict between Drupal captcha and profiles that require registration

This forum was archived on 2017-11-26.