I am getting the following error (seen in firebug) on all pages with recaptchas on them.
Error: ReCAPTCHA placeholder element must be empty
Though the pages still function, other js functionality doesn't work. For example - when I empty the cart via the cart button in the header, the cart empties but the details on the button don't update.
Anyone else seen this?
You can see the error at http://barbaramclennan.com/index.php?ro ... on/contact
Error: ReCAPTCHA placeholder element must be empty
Though the pages still function, other js functionality doesn't work. For example - when I empty the cart via the cart button in the header, the cart empties but the details on the button don't update.
Anyone else seen this?
You can see the error at http://barbaramclennan.com/index.php?ro ... on/contact
Last edited by santura on Tue Jul 05, 2016 2:44 pm, edited 1 time in total.
Hi
Google reCaptcha work perfect on your site
Google reCaptcha work perfect on your site
18 extra positions FREE, Unlimit style color for default theme FREE, Vietnamese Language, vietxuangas.com.vn
Which OC version are you using?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
According to this link: http://stackoverflow.com/questions/2757 ... lid-inputs ,
changing the following in your catalog/view/theme/<your_theme>/template/captcha/google_captcha.tpl file:
into:
Then, at the bottom - to add:
would solved the problem. However, another one from this link: https://groups.google.com/forum/#!topic ... UTgPoIKhOk indicates that adding a closing tag to the DIV key would solved the problem like this on the same file:
into:
but I did not tested these.
changing the following in your catalog/view/theme/<your_theme>/template/captcha/google_captcha.tpl file:
Code: Select all
<script src="//www.google.com/recaptcha/api.js" type="text/javascript"></script>
Code: Select all
<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit" async defer></script>
Code: Select all
<script text="text/javascript"><!--
grecaptcha.reset();
//--></script>
Code: Select all
<div id="input-payment-captcha" class="g-recaptcha" data-sitekey="<?php echo $site_key; ?>"></div>
Code: Select all
<div id="input-payment-captcha" class="g-recaptcha" data-sitekey="<?php echo $site_key; ?>" /></div>
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I don't have that file. It seems to be done differently in my version 2.0.2.0
I did just notice in the header on my contact page, that the recaptcha script is called twice. Maybe this is the issue.
Don't quite know how to fix this though.
I did just notice in the header on my contact page, that the recaptcha script is called twice. Maybe this is the issue.
Don't quite know how to fix this though.
Who is online
Users browsing this forum: No registered users and 273 guests