Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reCAPTCHA validation never ok even with box ticked #15

Closed
DESIGNfromWITHIN opened this issue Feb 9, 2017 · 2 comments
Closed

reCAPTCHA validation never ok even with box ticked #15

DESIGNfromWITHIN opened this issue Feb 9, 2017 · 2 comments

Comments

@DESIGNfromWITHIN
Copy link

On my test page all seems to work until you try to send...
https://www.dswiss.com/de/kontakt-test/

Keep getting a error from reCAPTCHA, tried adding:
ini_set("allow_url_fopen", true);
But this did not work.

cURL for PHP is installed, the form works fine without the reCATCHA...

The form:
[[!FormIt? &hooks=recaptchav2,spam,email &emailTpl=contact_form_email_dswiss &emailSubject=Contact request ([[*context_key]]) from [[+name]] via DSWISS contact form &emailTo=[[*contact_form_email_to]] &customValidators=securesafe_contact_validator &validate=name:required:stripTags,firstname:required:stripTags,company:required:stripTags,email:email:required:stripTags,phone:required:stripTags &successMessage=

<script> $(document).ready(function(){ $.magnificPopup.open({ items: { src: '#succesModal', type: 'inline' } }); }); </script>

]] [[+placeholder]] [[!+fi.error_message:notempty=

[[!+fi.error_message]]

`]]

[[%securesafe.name? &topic=`contact`]] [[!+fi.error.name]]
[[%securesafe.firstname? &topic=`contact`]] [[!+fi.error.firstname]]
[[%securesafe.company? &topic=`contact`]] [[!+fi.error.company]]
[[%securesafe.email? &topic=`contact`]] [[!+fi.error.email]]
[[%securesafe.telephone_number? &topic=`contact`]] [[!+fi.error.phone]]
[[%securesafe.message? &topic=`contact`]] [[!+fi.error.message]] <textarea name="message" id="message" value="[[!+fi.message:htmlent]]" tabindex="7">[[!+fi.message:htmlent]]</textarea>
[[!recaptchav2_render]] [[!+fi.error.recaptchav2_error]]
`

Line 991 mentioned in error log has this:

/** * Unset a placeholder value by key. * * @param string $key The key of the placeholder to unset. */ public function unsetPlaceholder($key) { if (is_string($key) && array_key_exists($key, $this->placeholders)) { unset($this->placeholders[$key]); } }

error_log.txt

@DESIGNfromWITHIN
Copy link
Author

OMG a efffin SPACE at the end of the reCAPTCHA site key!!!

1 similar comment
@DESIGNfromWITHIN
Copy link
Author

OMG a efffin SPACE at the end of the reCAPTCHA site key!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant