- Posts: 3
COMMUNITY FORUM
Registration Problems with reCaptcha
- Jared Hungerford
-
Topic Author
- Offline
- New Member
Less
More
10 years 10 months ago #129162
by Jared Hungerford
Registration Problems with reCaptcha was created by Jared Hungerford
Hi.
New user accounts attempting to register on the site are returning the following errors:
Notice: Constant RECAPTCHA_API_SERVER already defined in /var/www/osl/administrator/components/com_k2/lib/recaptchalib.php on line 49
Notice: Constant RECAPTCHA_API_SECURE_SERVER already defined in /var/www/osl/administrator/components/com_k2/lib/recaptchalib.php on line 50
Notice: Constant RECAPTCHA_VERIFY_SERVER already defined in /var/www/osl/administrator/components/com_k2/lib/recaptchalib.php on line 51
Fatal error: Cannot redeclare class ReCaptchaResponse in /var/www/osl/administrator/components/com_k2/lib/recaptchalib.php on line 148
Here are lines 49, 50, 51, & 148 on the php file:
47 * The reCAPTCHA server URL's
48 */
49 define("RECAPTCHA_API_SERVER", "www.google.com/recaptcha/api");
50 define("RECAPTCHA_API_SECURE_SERVER", "www.google.com/recaptcha/api");
51 define("RECAPTCHA_VERIFY_SERVER", "www.google.com");
148 class ReCaptchaResponse {
149 var $is_valid;
150 var $error;
151 }
Any assistance would be greatly appreciated.
My site's URL is www.opensourceliving.org
New user accounts attempting to register on the site are returning the following errors:
Notice: Constant RECAPTCHA_API_SERVER already defined in /var/www/osl/administrator/components/com_k2/lib/recaptchalib.php on line 49
Notice: Constant RECAPTCHA_API_SECURE_SERVER already defined in /var/www/osl/administrator/components/com_k2/lib/recaptchalib.php on line 50
Notice: Constant RECAPTCHA_VERIFY_SERVER already defined in /var/www/osl/administrator/components/com_k2/lib/recaptchalib.php on line 51
Fatal error: Cannot redeclare class ReCaptchaResponse in /var/www/osl/administrator/components/com_k2/lib/recaptchalib.php on line 148
Here are lines 49, 50, 51, & 148 on the php file:
47 * The reCAPTCHA server URL's
48 */
49 define("RECAPTCHA_API_SERVER", "www.google.com/recaptcha/api");
50 define("RECAPTCHA_API_SECURE_SERVER", "www.google.com/recaptcha/api");
51 define("RECAPTCHA_VERIFY_SERVER", "www.google.com");
148 class ReCaptchaResponse {
149 var $is_valid;
150 var $error;
151 }
Any assistance would be greatly appreciated.
My site's URL is www.opensourceliving.org
Please Log in or Create an account to join the conversation.
- Kannan Naidu Venugopal
-
- Offline
- Platinum Member
- Aham Brahmasmi
10 years 10 months ago #129163
by Kannan Naidu Venugopal
K2 Rocks \m/
Replied by Kannan Naidu Venugopal on topic Re: Registration Problems with reCaptcha
Maybe this solved thread can help you - see
here
K2 Rocks \m/
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
10 years 10 months ago #129164
by Lefteris
Replied by Lefteris on topic Re: Registration Problems with reCaptcha
@Jared Hungerford
Hi. It looks like an other extension is using the same library with K2. Try to look for third-party extensions that provide reCAPTCHA in your site.
Hi. It looks like an other extension is using the same library with K2. Try to look for third-party extensions that provide reCAPTCHA in your site.
Please Log in or Create an account to join the conversation.
- Jared Hungerford
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 3
10 years 10 months ago #129165
by Jared Hungerford
Replied by Jared Hungerford on topic Re: Registration Problems with reCaptcha
I'm using J 3.3.0 | Jomsocial 3.2.0.5 | JFBConnect 6.0.5 | SCLogin 4.0.5
Thanks for the responses guys but I looked all over and couldn't find another extension which uses reCaptcha. It's weird because this was working fine not too long ago. :/
I've disabled several plugins and tested after clearing server and browser caches. I've done the following:
Implemented solutions per thread - getk2.org/community/English-K2-Community/10508-SOLVED-Re-reCaptcha-not-working
Disabled - JCH Optimize Pro plugin
Disabled - NoNumber CDN for Joomla plugin
Disabled - Captcha reCaptcha plugin
Disabled - K2 Social Profiles plugin
Disabled - System Cache
After doing the above it still returns the same errors. Could the ordering of the plugins be causing this issue?
I am at a loss. :(
Thanks for the responses guys but I looked all over and couldn't find another extension which uses reCaptcha. It's weird because this was working fine not too long ago. :/
I've disabled several plugins and tested after clearing server and browser caches. I've done the following:
Implemented solutions per thread - getk2.org/community/English-K2-Community/10508-SOLVED-Re-reCaptcha-not-working
Disabled - JCH Optimize Pro plugin
Disabled - NoNumber CDN for Joomla plugin
Disabled - Captcha reCaptcha plugin
Disabled - K2 Social Profiles plugin
Disabled - System Cache
After doing the above it still returns the same errors. Could the ordering of the plugins be causing this issue?
I am at a loss. :(
Please Log in or Create an account to join the conversation.
- Jared Hungerford
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 3
10 years 10 months ago #129166
by Jared Hungerford
Replied by Jared Hungerford on topic Re: Registration Problems with reCaptcha
Just disregard this thread. It appears that the Jomsocial reCaptcha takes precedence in the new account registration and K2 anti-spam setting (in Advanced Tab) was on for registration as well. I just disabled the K2 reCaptcha setting for registration and it works again.
Conflict solved as no members will be registering directly through K2 extension on front end anyways.
Conflict solved as no members will be registering directly through K2 extension on front end anyways.
Please Log in or Create an account to join the conversation.