/ / reCaptcha sempre retorna falso no host do iPage - php, recaptcha

reCaptcha sempre retorna falso no host do iPage - php, recaptcha

Eu tenho uma recaptcha que não funcionará por umsite específico e eu não consigo entender o porquê. No meu host funciona bem, mas quando eu testo em um host iPage, ele sempre retorna falso, mesmo com um simples formulário de teste, é sempre falso.

Eu tentei refazer as chaves. Eu até fiz o básico das formas como você pode ver abaixo, mas sempre retorna falso. E sem erros.

http://legionoffoam.com/new/form.html

form.html

<html>
<head>
<script src="https://www.google.com/recaptcha/api.js"></script>
</head>
<body>
<form action="test-recaptcha.php" method="post">
<div class="g-recaptcha" data-sitekey="6LdXvCYTAAAAAOzMaqHb6lFZrIVnATbo7PxzvSfS"></div>
<input type="submit" value="SUBMIT" id="submit">
</form>
</body>
</html>

test-recaptcha.php

<?php

require_once "recaptchalib.php";

$secret = "<<SECRET>>";

$response = null;
$reCaptcha = new ReCaptcha($secret);

if ($_POST["g-recaptcha-response"]) {
$response = $reCaptcha->verifyResponse(
$_SERVER["REMOTE_ADDR"],
$_POST["g-recaptcha-response"]
);
}

var_dump($response);
var_dump($_POST);

reponse:

{["success"]=> bool(false) ["errorCodes"]=> NULL }

Respostas:

1 para resposta № 1

O problema é com o arquivo padrão php.ini que o iPage usa.

"allow_url_fopen" está desativado por padrão, mude isso para on e tudo deve funcionar bem.

Para alterar essa configuração, vá para: cPanel> CGI e suporte a idiomas com script> PHP Script