Notifications
Clear all

wpForo 1.x.x [Closed] Recaptcha not working

6 Posts
2 Users
0 Reactions
1,278 Views
Posts: 9
Topic starter
(@tenchinhan12)
Active Member
Joined: 5 years ago

Hello,

I am having problems with the recaptcha on my forum setup. The recaptcha iframe loads but when you click on it you just see the infinite loading circle.

JS error message is:

Uncaught Error: reCAPTCHA placeholder element must be empty
at Object.AE [as render] (recaptcha__de.js:521)
at wpForoReCallback (?wpforo=signup:163)
at $a (recaptcha__de.js:524)
at recaptcha__de.js:527
at G (recaptcha__de.js:512)

 

I am not using any other recaptcha plugins. The recaptcha div made by wpforo is empty, i checked that. Maybe you can help me to find the problem here.

 
5 Replies
Sofy
Posts: 4900
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi @tenchinhan12,

Please leave some example URL to allow us to check it. 

2 Replies
(@tenchinhan12)
Joined: 5 years ago

Active Member
Posts: 9
Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 4900

@tenchinhan12

Please send the admin login details to info[at]gvectors.com email address. I'll ask developers to check the issue and provide some solutions for you.

Posts: 9
Topic starter
(@tenchinhan12)
Active Member
Joined: 5 years ago

I found the problem and fixed it!

I have edited the file wpforo/wpf-includes/class-api.php

public function rc_widget() {
$site_key = WPF()->tools_antispam['rc_site_key'];
if( $site_key ){
echo '<div class="wpforo_recaptcha_widget"></div><div class="wpf-cl"></div>';
//echo "\r\n<script>wpForoReCallback();</script>";
}
}

 

I have removed the script part! The api.js call of the recaptcha plugin already calls that function via onlaod parameter and so this causes the issie on my site. There has to be a problem with the order of these calls. Maybe you can review that and fix it for future releases. If you have further questions, please let me know.

1 Reply
Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 4900

@tenchinhan12,

I've asked the developers about the code you've deleted and got the following response. 

The part of the code must not be removed. Thought it seems to work correctly, there may be other issues if the code is removed. Please add the code back and send the login details to info[at]gvectors.com email address. Developers will check and provide a global solution for such cases.