Captcha recaptcha不再起作用了

时间:2013-11-07 16:23:45

标签: joomla2.5 recaptcha

这是完美的工作,但今天验证码不再出现了。我对代码进行了调试,我意识到我的joomla插件captcharecaptcha在将页面呈现为javascript文件时包含此文件

  

http://api.recaptcha.net/js/recaptcha_ajax.js

但如果我直接从我的浏览器点击链接,我就找不到404了。今天有人有任何类似的问题吗? js文件的路径是否已更改?

您可以更改端点

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";

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 = "api-verify.recaptcha.net";

它会起作用。我想这适用于任何版本的joomla

2 个答案:

答案 0 :(得分:18)

要解决此问题,您需要更改文件/plugins/captcha/recaptcha/recaptcha.php

第24行

const RECAPTCHA_API_SERVER = "http://api.recaptcha.net";

const RECAPTCHA_API_SERVER = "http://api.recaptcha.net/recaptcha/api";

Google已经更改了重新访问代码路径,而joomla尚未修复此问题。

答案 1 :(得分:8)

我遇到了同样的问题,但我将其更改为

http://www.google.com/recaptcha/api/js/recaptcha_ajax.js

现在再次运作。希望这有帮助!

相关问题