Jump to content

Recommended Posts

  • 2 weeks later...
Posted

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

 

Posted

 

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

 

  • 2 weeks later...
Posted
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.

  • 10 months later...
Posted (edited)

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
  • Administrators
Posted

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.

  • 3 months later...
  • 2 years later...
  • Administrators
Posted

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?

Posted

i was getting the error message even when i had the keys put in. I have changed the settings to the ones here and the recaptcha now is working apart from when i submit a form and i get the above error. 

 

this is what line 40 says

 

$recaptcha = new \ReCaptcha\ReCaptcha(Config::Get('RECAPTCHA_PRIVATE_KEY'));

  • Administrators
Posted

Since you are using phpVMS 5.5.2 and just starting out, I'd recommemd a completely new installation. Don't attempt to use this thread to "update" reCaptcha as 5.5.2 already has reRaptcha v2.

 

Don't edit any core files. Just add a theme/skin and a few basic modules. Any module edits should be done to the files in the module only.

 

Get used to the program before editing any core files. If you can't get something to work in the base program that works for everyone else, it's not an issue with the core files.

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...