【问题标题】:Captcha recaptcha does not work anymore验证码重新验证码不再起作用
【发布时间】:2013-11-19 09:46:35
【问题描述】:

昨天它运行良好,但今天验证码不再出现。我调试了代码,我意识到我的 joomla 插件 captcharecaptcha 在将页面呈现为 javascript 文件时包含此文件

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

但如果我直接从浏览器点击链接,我会得到 404 not found。今天有人有类似的问题吗? 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

【问题讨论】:

    标签: joomla2.5 recaptcha


    【解决方案1】:

    要解决此问题,您需要更改文件 /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 已更改 recaptcha 代码路径,而 joomla 仍未修复此问题。

    【讨论】:

    • 嗯,昨天还在工作,今天我正要启动一个应用程序。不幸的是,这耗尽了我今天所有的时间,让我很沮丧。我已经完成了这个插件。谢谢。
    • 至少他们应该在几天前发出警告之类的东西,否则就是我的错
    【解决方案2】:

    我有同样的问题,但我把它改成了

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

    现在它又开始工作了。希望这会有所帮助!

    【讨论】:

    • 这给了我:Warnung LG RECAPTCHA ERROR
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-24
    • 1970-01-01
    • 2015-06-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多