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 (Moderator: Dave Greenberg) »
  • reCaptcha
Pages: [1]

Author Topic: reCaptcha  (Read 813 times)

Rudy Madsen

  • I post occasionally
  • **
  • Posts: 68
  • Karma: -2
  • CiviCRM version: 4.4.6
  • CMS version: Joomla 2.5 > 3.3
reCaptcha
August 27, 2010, 03:01:23 am
I'm using reCaptcha on my Joomla site and also in CiviCRM or should I write I would like to use it. When I try to implemente the reCaptcha I get following error:

Fatal error: Cannot redeclare _recaptcha_qsencode() (previously declared in /home/educase/domains/educasetest.dk/public_html/plugins/system/recaptcha/recaptchalib.php:47) in /home/educase/domains/educasetest.dk/public_html/administrator/components/com_civicrm/civicrm/packages/recaptcha/recaptchalib.php on line 55

I know it is because I also use it in the registration form and on another place but what goes wrong?

/Rudy
Regards

Rudy Madsen

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: reCaptcha
August 27, 2010, 07:38:07 am

this is because two different components are using recaptcha. unforunately no good universal solution exists in PHP (IMO) that meets everyones needs

your best be would be to add a conditional to one of the recaptchalib files so the contents are not included if the other one has already been included

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • reCaptcha

This forum was archived on 2017-11-26.