VividCortex / angular-recaptcha

AngularJS directive to add a reCaptcha widget to your form
http://vividcortex.github.io/angular-recaptcha/
MIT License
496 stars 257 forks source link

ReCAPTCHA couldn't find user-provided function: vcRecaptchaApiLoaded #175

Closed abd2561024 closed 7 years ago

abd2561024 commented 7 years ago

Hi! I have the following message in console ReCAPTCHA couldn't find user-provided function: vcRecaptchaApiLoaded recaptcha__ru.js:367. It shows when the ReCAPTCHA widget didn't exist on current page. If I go to my auth page and it loads ReCAPTCHA widget, this message didn't showing in console. Any idea how I can solve this a little problem?

TheSharpieOne commented 7 years ago

interesting. That must be a new error they are throwing. If reCaptcha is loaded before angular-recaptcha then angular-recaptcha will detect that and just run. If you ensure angular-recaptcha is loaded before recaptcha it will resolve your issue.

jrbecart commented 7 years ago

Same error with me: ReCAPTCHA couldn't find user-provided function: vcRecaptchaApiLoaded recaptcha__fr.js:305

For info I am using third-party async loader library. I tried to load angular-recaptcha before recaptcha but it doesn't work.

DSpeichert commented 7 years ago

Same here, loading angular-recaptcha before recaptcha doesn't change this.

vmnikhil commented 7 years ago

same happening for me too..

caiojhonny commented 7 years ago

Same here

pjotrvig commented 7 years ago

Including ReCaptcha after angular-recaptcha helped for me.

jrbecart commented 7 years ago

Do you think this can be related to release code out dated (missing lang feature) #173 ? Maybe english language is not affected...?

alexpchin commented 7 years ago

+1 for this? I'll look into this when I get a moment but if anyone has a solution - please post.

kevzlou7979 commented 7 years ago

Got the same issue too

markfaseldesign commented 7 years ago

I have the same issue.

DSpeichert commented 7 years ago

@markfaseldesign I think fix was commited to master in #176 but not released as a version yet.

iambrosi commented 7 years ago

@markfaseldesign @DSpeichert This was fixed and released in v4.0

radianz commented 7 years ago

I updated to the latest version but the issue is still there.

bobheath33435 commented 7 years ago

I updated to 4.0 and I have the problem too.

ruyjfs commented 7 years ago

I get the master and i have too.. Just 2 days whit any library of captcha for angular and no success. Thanks for help!!

wholeinsoul commented 6 years ago

I'm on 3.0.3 and I was seeing the same message in console but after putting () after the function made it disappear.

<script src="//www.google.com/recaptcha/api.js?onload=vcRecaptchaApiLoaded()&render=explicit"
            async defer>
</script>
<script type="text/javascript"
              src="https://cdnjs.cloudflare.com/ajax/libs/angular-recaptcha/3.0.3/angular-recaptcha.min.js">
</script>
Saidorif commented 6 years ago

I had the same issue "ReCAPTCHA couldn't find user-provided function". I removed document.ready() function. It worked!

MohammedNoureldin commented 6 years ago

I have the same issue, I have no document.ready();

Hdezhkam commented 5 years ago

$(document).ready(function() { onReCaptchaSuccess = function onReCaptchaSuccess() { $('#errorRecapture').hide();} });