Upgrading ReCaptcha to v2

yes verry long time . got it fixed now sorry for the late reply

 

1 Like

How did you fix it? We are having that issue currently, where you get the registration page but then it reset’s itself. We did just fix it to ReCaptcha V2. if you have any insight on this too please email me at [email protected] and let me know, our team is stumped!

 

 

its easy to fix i think but i will need to do it again let me know when you have time i will help you

I get this:

Warning: require_once(/home3/woodsdom/public_html/CPC/core/lib/recaptcha/autoload.php) [function.require-once]: failed to open stream: No such file or directory in /home3/woodsdom/public_html/CPC/core/bootstrap.inc.php on line 20

Fatal error: require_once() [function.require]: Failed opening required ‘/home3/woodsdom/public_html/CPC/core/lib/recaptcha/autoload.php’ (include_path=‘.:/opt/alt/php53/usr/share/pear:/opt/alt/php53/usr/share/php’) in /home3/woodsdom/public_html/CPC/core/bootstrap.inc.php on line 20

 

Would this have anything to do with the fact that my site has the http://www.canadianclassicairlines.com/CPC/ whereas, the my main hosting site is: http://www.canadianclassicairlines.com

I know that had caused issues with a couple modules, ages ago?!

And should there be an “autoload.php” file in the /core/lib/recaptcha/ directory, because I don`t have one!?

All fixed now; I missed a step

Bruce

HI , I did everything but problem is on http://crew.iranairvirtual.com//index.php/registration

What should i do?

Its stating that public_html/crew/core/modules/Registration/Registration.php doesnt exist. Make sure you have a Registration.php in modules/Registration/

 

it seems our phpvms is too old and cause of this new reCaptcha is not comptible

So does the recaptcha update work here, or not? I’ve tried installing it and quite frankly, the knowledge needed to install it is way above my pay grade. So for most of this year we haven’t had a single new member because of it.

 

If it does work, would anyone like to try doing the update for us?

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

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

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.

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”?

 

 

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

 

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.

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.

//forum.phpvms.net/applications/core/interface/index.html

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:

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
 

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.

It is telling you the function is not there, So either you have to add the function or find the code that is supposed to be there.

hi, I am getting this error after completing the steps in the tutorial to replace the recaptcha. Fatal error: Class ‘ReCaptcha\ReCaptcha’ not found in /home/ukgtvaco/public_html/core/modules/Contact/Contact.php on line 40

If you are using phpVMS 5.5.2 or 5.5.2.72 - as I recall, these come with reCaptcha v2. No need to update.

 

What does line 40 in the Contact.php file say?