Home › Forums › Quform WordPress › Error Message/Won't Send
- This topic has 8 replies, 2 voices, and was last updated 9 years, 1 month ago by Ally.
- AuthorPosts
- February 23, 2015 at 12:44 am #13945danamacParticipant
Hi,
When I add the code using the plugin to a page on my website, an error message is returned when I attempt to test the contact button. “An error occurred, please try again” With no explanation or further instructions.
Here is a link to my website/contact box.
https://rebeldietitian.us/contact/
Thanks,
DanaFebruary 23, 2015 at 1:02 am #13946danamacParticipantThe problem appears to be related to inclusion of Google Recaptcha; however, I have copied in the correct key and password. I don’t know what could be going wrong?
Thanks
DanaFebruary 23, 2015 at 9:06 am #13951AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 23, 2015 at 8:01 pm #13952danamacParticipantHi Ally,
Thank you for your reply. I sent an email to the address you listed above this morning. Please let me know if you received it. Thank you! Dana 🙂February 23, 2015 at 8:07 pm #13953danamacParticipantoh, and I am receiving this error message via my server (just found it):
2/23/2015 4:14:35 PM – www: PHP Warning: file_get_contents(https://www.google.com/recaptcha/api/siteverify?secret=6LcRhAITAAAAAAy1erP_OD2DXjFpG6o7i1OGWKh2&response=03AHJ_VusstM5aoxvOhmpMzcXRgki4Gca7PCI1NPFaVDqppWpsuRopQAXkLpbdMOtgEr1sg80lOCoOD2pnaIFGWoowC6_duH0_dqDY3xtnzQDcRHzJYMC29zVE5gaBatrrH2EdMFyJTpKv9J_QK0J5cPzm80qSDH2CfG6xjvnk0KR18vjMjRUCkoKeBYg6Zvlj-2rUMD4snf2Jogeep3fN01TjmGqg_9GIzBBWpgVD3AHS0a-rNSx-h5oF3nOTx4rmb3OYJciYWz_TJ8Hd5eapX30gNvH-PBVI7iOf8urFM39bGCj2XxhLsLYtulKjSNa1bW0GVlu6rbCm4gbpi2fGRvEshnOPPwrB0W5jEd5eLSOsEERca0FGNj0&remoteip=99.162.201.51): failed to open stream: no suitable wrapper could be found in /var/www/rebeldietitian.us/wp-content/plugins/iphorm-form-builder/includes/iPhorm/Validator/Recaptcha.php on line 60
February 23, 2015 at 8:12 pm #13954danamacParticipantthis is the code in the file recaptcha.php. Can you tell me where the error is? Thanks!
Checks the reCAPTCHA answer
*
* @param string $value The value to check
* @return boolean True if valid false otherwise
*/
public function isValid($value)
{
$params = array(
‘secret’ => $this->_secretKey,
‘response’ => isset($_POST[‘g-recaptcha-response’]) ? $_POST[‘g-recaptcha-response’] : ”,
‘remoteip’ => iphorm_get_user_ip()
);$qs = http_build_query($params);
$response = file_get_contents(‘https://www.google.com/recaptcha/api/siteverify?’ . $qs);
$response = json_decode($response, true);if (!is_array($response) || !isset($response[‘success’])) {
$this->addMessage($this->_messageTemplates[‘error’]);
return false;
}if (!$response[‘success’]) {
if (isset($response[‘error-codes’]) && is_array($response[‘error-codes’]) && count($response[‘error-codes’])) {
foreach ($response[‘error-codes’] as $error) {
if (array_key_exists($error, $this->_messageTemplates)) {
$message = $this->_messageTemplates[$error];
} else {
$message = $this->_messageTemplates[‘invalid-input-response’];
}$this->addMessage($message);
return false;
}
} else {
$this->addMessage($this->_messageTemplates[‘error’]);
return false;
}
}return true;
February 25, 2015 at 5:11 pm #13962AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 26, 2015 at 5:04 am #13976danamacParticipantHi Ally,
Thanks for your reply. I tried the changes you suggested but it did not work. Any other suggestions? If you could provide guidance for the guys at WebSynthesis, they’d be happy to take a look at it, but they would need some additional information/instructions from you. Let me know if I should change the code back? I don’t know what to do.. 🙂
Thanks
DanaMarch 2, 2015 at 9:22 am #13993AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.