Jump to content
pluto708

ReCaptcha Error

Recommended Posts

I am receiving the this ReCaptcha error: ERROR for site owner: Invalid site key reCAPTCHA

I am using Nabeel's 5.5 version.

I am using ReCaptcha v2

My domain registered with ReCaptcha is: http://phpvms708.000webhostapp.com

These are my keys: https://gyazo.com/7e1c73f8e8ca0f0485e38239ce2da601

This is line is added into my local.config.php

/* Keys for recaptcha, you can change these if you want to your own but it's a global key so it should just work */
Config::Set('RECAPTCHA_PUBLIC_KEY', '6LfxCZsUAAAAAOCCVBBECIKf4uOSg-Uh_UYlZ4bS');
Config::Set('RECAPTCHA_PRIVATE_KEY', '6LfxCZsUAAAAAOOQ9b5LO-iDAsEM9myVY0eT9Msu');

Here is a full log of my local.config.php: https://pastebin.com/7jX8WLSK

I have tried putting the keys in my app.config.php. I have also tried leaving the app.config.php default.

Here is a full log of my default app.config.php: https://pastebin.com/Q40xQmF5

 

Edited by pluto708
Fixed security issue.

Share this post


Link to post
Share on other sites

Nabeel's is version 5 - not 5.5. Simpilot's is version 5.5.2

Version 5 needs the ReCaptcha 2 added to it. Version 5.5.2 has ReCaptcha 2 already. Both versions need the ReCaptcha keys added to local.config.php.

You should not alter or add anything to app.config.php - add to local.config.php. Items in local.config.php will take precedence over the same items in app.config.php.

It appears you are using free hosting. phpVMS won't work correctly with free hosting.

Don't post keys assigned to you in the forums. I'd suggest you edit your post to remove the ReCaptcha keys.

Edited by ProAvia

Share this post


Link to post
Share on other sites
9 minutes ago, ProAvia said:

Nabeel's is version 5 - not 5.5. Simpilot's is version 5.5.2

Version 5 needs the ReCaptcha 2 added to it. Version 5.5.2 has ReCaptcha 2 already. Both versions need the ReCaptcha keys added to local.config.php.

You should not alter or add anything to app.config.php - add to local.config.php. Items in local.config.php will take precedence over the same items in app.config.php.

It appears you are using free hosting. phpVMS won't work correctly with free hosting.

Don't post keys assigned to you in the forums. I'd suggest you edit your post to remove the ReCaptcha keys.

I think I made a mistake, I believe I do have the simpilot version. this is what is on my host: https://github.com/DavidJClark/phpvms_5.5.x

I will also be changing my keys once I fix this issue so security is no factor.

Edited by pluto708

Share this post


Link to post
Share on other sites

With the Simpilot 5.5.2 version you listed, you do not need to do the update to ReCaptcha v2. Just get the keys from Google and put in the local.config file.

If you are on free hosting, phpVMS will not work properly.

Share this post


Link to post
Share on other sites
12 minutes ago, ProAvia said:

With the Simpilot 5.5.2 version you listed, you do not need to do the update to ReCaptcha v2. Just get the keys from Google and put in the local.config file.

If you are on free hosting, phpVMS will not work properly.

Alright, it must be an issue with my free host because I have put the keys in the local.config, could you recommend me a good host that you know works well with phpvms, thanks.

Share this post


Link to post
Share on other sites

I don't have any specific recommendations and don't know your specific hosting needs. There are a bunch of web hosting companies out there. What country are you in?

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×