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 CiviContribute (Moderator: Donald Lobo) »
  • error with reCaptcha
Pages: [1]

Author Topic: error with reCaptcha  (Read 1752 times)

crayon

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 1
  • CiviCRM version: 3.3.6
  • CMS version: Drupal 6.2
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
error with reCaptcha
March 31, 2009, 12:26:42 pm
I checked INCLUDE reCAPTCHA under the Advanced Settings in the profiles that I use with CiviContribute pages.  Several things happen. 

1. The CONTINUE button, normally at the bottom of the forms moved to the top of the forms. 

2. I get this error:

Please correct the following errors in the form fields below:

    * is a required field.

But there is nothing to correct.  I can't get passed that page.  Yet, some people have because I received a handful of contributions with the reCAPTCHA in place.

I have unchecked it until I learn how to do it right! 

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: error with reCaptcha
March 31, 2009, 01:09:37 pm

1. can you try to reproduce this issue on demo

2. the issue most likely is bad HTML, could come from:

* your site theme
* any custom html that you added for an intro message
* a customized template that you might be using

3. I would validate the HTML and see where the html error is. this might give you a clue as to where the html error is originating

4. Finally check with another browser, in case this is a specific browser issue :)

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

crayon

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 1
  • CiviCRM version: 3.3.6
  • CMS version: Drupal 6.2
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
Re: error with reCaptcha
April 02, 2009, 12:35:55 pm
1. It's fine on the demo.
2.
*Where do I look for the site theme code - I can't seem to find it?  I think I set it up a long time ago...
*With or without intro message, I get the same problem
*No customized template is used
3. The generated HTML is definitely bad when CAPTCHA is used.

This code is added at the end, after my footer profile table in the page without CAPTCHA but it is placed at the beginning after the header code table when CAPTCHA is selected in the footer profile.


<div id="crm-submit-buttons">
    <input class="form-submit default" name="_qf_Main_next" value="Continue &gt;&gt;" type="submit">
</div>
    <div id="footer_text">
    <p>
    </p><p align="center">Return to <a href="http://www.earthsave.org/">EarthSave Home Page</a></p>
   
    </div>

4. I get the same problem with FIREFOX and Internet Explorer.

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: error with reCaptcha
April 02, 2009, 02:27:31 pm

can u enable civicrm debug and clear out the template cache

http://wiki.civicrm.org/confluence/display/CRMDOC/Installation+and+Configuration+Trouble-shooting

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

crayon

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 1
  • CiviCRM version: 3.3.6
  • CMS version: Drupal 6.2
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
Re: error with reCaptcha
April 02, 2009, 03:28:00 pm
I did the debug but still have the same problem. 

To see what I am talking about you can view the pages. 

The one with CAPTCHA and the problem is https://donations.earthsave.org/civicrm/contribute/transact?reset=1&id=39

The one without CAPTCHA is here:https://donations.earthsave.org/civicrm/contribute/transact?reset=1&id=1

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: error with reCaptcha
April 02, 2009, 05:04:25 pm
Looks like this is a markup problem that was corrected in 2.2. I ran the w3cValidator against your page (which is an excellent tool btw) - and saw that the reCAPTCHA element is contained in a table layout but there is not begin or end table markup. Upgrading to 2.2 should fix the problem. Otherwise, you can edit the template file as follows which I think will fix your problem:

File: templates/CRM/common/ReCAPTCHA.tpl
Add this line to the top of the file:
Code: [Select]
<table class="form-layout-compressed">

... and this after the last line:
Code: [Select]
</table>
Protect your investment in CiviCRM by  becoming a Member!

crayon

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 1
  • CiviCRM version: 3.3.6
  • CMS version: Drupal 6.2
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
Re: error with reCaptcha
April 04, 2009, 12:34:28 pm
THANKS!  That worked.  Yeah!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • error with reCaptcha

This forum was archived on 2017-11-26.