Jump to content
Nabeel

Upgrading ReCaptcha to v2

Recommended Posts

5 hours ago, Taran22 said:

I followed the steps, but the recaptcha box just disappears.  http://skykingvirtualalliance.net/index.php/Registration

It appears you are using an invalid site key. Go to Google and get a Public and Private key - here's a guide: Google ReCaptcha Keys

Edited by ProAvia

Share this post


Link to post
Share on other sites

I've done that, and those are the codes I used. Would someone be willing to go in and fix this and the google map issue for me? I'll pay for that at this point.

Share this post


Link to post
Share on other sites

I do not look at all the codes anymore, no matter how I change it, mistakes always come up.
Would not it make more sense if you do not simply load the files on the server and overwrite them and then just change the "local.config.php"?

 

Share this post


Link to post
Share on other sites

 

so far, so good, recaptcha works
But now I get above the header area, these messages

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web144317/html/core/app.config.php:1) in /var/www/web144317/html/index.php on line 74

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web144317/html/core/app.config.php:1) in /var/www/web144317/html/index.php on line 76

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web144317/html/core/app.config.php:1) in /var/www/web144317/html/index.php on line 78

 

Share this post


Link to post
Share on other sites
On 7/5/2018 at 2:39 PM, joeri said:

hello all i thried this to my website and the form just resets itself but nor registration is passed.

 

 

anny help would be nice

We are having this exact issue. Followed all the steps, but filling out the form and clicking submit just reloads the contact form.

Share this post


Link to post
Share on other sites

Good Morning guys. 
Having a problem, getting a fatal error. phpvms5. I have followed all of the instructions in this forum and the one below.

Using the instructions in the above linked forum...
I added the file recaptcha-master file to core/lib 

I replaced  -  require_once CORE_LIB_PATH.'/recaptcha/recaptchalib.php';
with - require_once CORE_LIB_PATH.'/recaptcha-master/src/autoload.php';
in core/modules/registration/registration.php

I copied and pasted the VerifyData information into the same file, removing what was originally there for recaptcha

I copied and pasted the information to registration_mainform.php in both:
/crew/lib/skins/crewcenter/registration_mainform.php (because im using a skin)
And
crew/core/templates/registration_mainform.php

This was not in the instructions, but I also added my recaptcha public and private keys in /public_html/crew/core/local.config.php and /public_html/crew/core/app.config.php for good measure.

I am getting this error:recaptchaerror.JPG

That error is referencing:

<?php
            echo recaptcha_get_html(Config::Get('RECAPTCHA_PUBLIC_KEY'), $captcha_error);
        ?>

I don't know what to do from this point. 

Edit - After checking... this DID work for the default registration form but not for the CrazyCreatives Crew test registration form. Don't know if anyone has experience with that.
Thanks
 

Edited by djtiger76

Share this post


Link to post
Share on other sites

There is no phpVMS 5.There is 2.1.x, 5.5.2 and 5.5.2.72. Look in the lower right of the main admin page to see which you are using.

Both phpVMS 5.5.2 and phpVMS 5.5.2.72 are already recaptcha v2 compliant. No need to update them. But you will need to acquire a public and a private key from Google to use recaptcha. 

After you get the keys from Google, you need to place them in local.config.php

Also, don't add anything to app.config.php. Only add to local.config.php. the local.config.php file takes precidence over the app.config.php file. So if the same line is in both files, local.config.php line will be used.

Since the CC Crew Test is payware, you will need to ask them for help or check out their forums.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...