Welcome, Guest
Username: Password: Remember me
Having trouble? Let us help you.
  • Page:
  • 1

TOPIC: Recaptcha plugin not working anymore

Recaptcha plugin not working anymore 4 years 1 week ago #1

Recently Google changed the reCaptcha API which results in a broken recaptcha plugin in Joomla. This issue will be fixed in a future Joomla update, but for now you can resolve this issue by changing the file: plugins/captcha/recaptcha/recaptcha.php:

Joomla 2.5

change line 24 to 26
const RECAPTCHA_API_SERVER = "http://api.recaptcha.net";
const RECAPTCHA_API_SECURE_SERVER = "https://www.google.com/recaptcha/api";
const RECAPTCHA_VERIFY_SERVER = "api-verify.recaptcha.net";
to
const RECAPTCHA_API_SERVER = "http://www.google.com/recaptcha/api";
const RECAPTCHA_API_SECURE_SERVER = "https://www.google.com/recaptcha/api";
const RECAPTCHA_VERIFY_SERVER = "www.google.com";

And change line 118
$response = $this->_recaptcha_http_post(self::RECAPTCHA_VERIFY_SERVER, "/verify",
to
$response = $this->_recaptcha_http_post(self::RECAPTCHA_VERIFY_SERVER, "/recaptcha/api/verify",

Joomla 3.x

change line 22 to 24
const RECAPTCHA_API_SERVER = "http://api.recaptcha.net";
const RECAPTCHA_API_SECURE_SERVER = "https://www.google.com/recaptcha/api";
const RECAPTCHA_VERIFY_SERVER = "api-verify.recaptcha.net";
to
const RECAPTCHA_API_SERVER = "http://www.google.com/recaptcha/api";
const RECAPTCHA_API_SECURE_SERVER = "https://www.google.com/recaptcha/api";
const RECAPTCHA_VERIFY_SERVER = "www.google.com";

change line 129
self::RECAPTCHA_VERIFY_SERVER, "/verify",
to
self::RECAPTCHA_VERIFY_SERVER, "/recaptcha/api/verify",
VitaBook is our guestbook component for Joomla! 2.5 & 3.x. If you use VitaBook, please post a rating and a review at the Joomla! Extensions Directory.
The topic has been locked.
  • Page:
  • 1
Time to create page: 0.054 seconds