News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

How to get ReCAPTCHA to work in SMF 2.1 ?

Started by landyvlad, January 21, 2019, 06:50:37 AM

Previous topic - Next topic

landyvlad

I decided to give reCAPTCHA  try so I followed the relevant link and set it up for reCAPTCHA v3.

I entered the public and private keys into the relevant boxes in the SMF anit spam - recaptcha admin area.  And saved.

Someone attempted to register and got (the attached)

Suggestions?

My test site: http://www.gsx1400owners.org/test21forum




"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Arantor


live627

Your keys must be for v2 of the api. I've only tried the checkbox type, since that's the one I used when I integrated it.

Antes

Quote from: live627 on January 21, 2019, 05:23:35 PM
Your keys must be for v2 of the api. I've only tried the checkbox type, since that's the one I used when I integrated it.

Maybe a small language change to state that SMF using v2.

landyvlad

Thanks

I've now changed it to recaptcha v2 keys so hopefully it works now.

Feel free to try for me :)
http://www.gsx1400owners.org/test21forum/
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

landyvlad

Hmm seems to have got worse.  Went with a V2 setup and now get this...

"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Dzonny

Quote from: landyvlad on January 21, 2019, 08:46:06 PM
Hmm seems to have got worse.  Went with a V2 setup and now get this...


I can see captcha image and checkbox there, but I can also see the input field below which I'm not sure what's there for.

Shambles

Quote from: Dzonny
I can see captcha image and checkbox there, but I can also see the input field below which I'm not sure what's there for.

I believe that's being discussed in the reCaptcha mod support thread, to do with setting questions in conjunction with reCaptcha.

Illori

SMF 2.1 has recaptcha by default, so it is not using the mod.

landyvlad

Yes correct 2.1 has it by default.

Dzonny - thanks. Someone else had the same result - see attachment - I presume that's what you are seeing too ?

I'm wondering if that's where the verification question is supposed to appear.

"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.


lurkalot

Quote from: landyvlad on January 22, 2019, 05:39:40 PM
Yes correct 2.1 has it by default.

Dzonny - thanks. Someone else had the same result - see attachment - I presume that's what you are seeing too ?

I'm wondering if that's where the verification question is supposed to appear.

I also had this very same thing. 

Yes that's where the verification question is when it's working.  On my test site the that text entry box was showing without the question, even though the number of verification to show was set to 0.  The only way to get rid of that rogue entry box was to delete the question(s) and save.

lurkalot

Just managed to get it to do it again.  Screenshot, one showing the extra entry box, but no question, and one showing the setting.

Again the only way to get rid of that entry box was to remove the question and answer. And save.

Arantor

Check it isn't the intentional hidden input showing.

live627

I looked at the site of landyvlad.  The hidden input works as expected. The element in question is

<input type="text" name="register_vv[q][]" size="30" value="" tabindex="8" required="">

landyvlad

live627 - I don't understand that at all, but I assume it wasn't directed at me anyway, :) but to others who may be able to help resolve the issue.

"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

live627

That's right.


As I posted in reply #10, a fix is in the worsts,

Sesquipedalian

The fix that live627 linked to above has been merged.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

landyvlad

when was it merged.

About 12 hours ago I updated my test forum with latest nightly from  https://www.simplemachines.org/community/index.php?topic=558451.20

The behaviour continues as before - badly :D - so apparently hasn't been sorted yet.

Be good when it is, because it's a pretty major issue if there are problems with members trying to register.
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

landyvlad

further to the above post - I'm told that if a registering user waits long enough they get this.

The theory that has been proposed is that it might have something to do with https... ?

So does the actual forum need to be HTTPS before recaptcha will work?
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

landyvlad

I accessed the forum using as https link.

I was able to click the recaptcha and get the tick.

As you can see though there is still a : where there should be a question (1) and a blank response field (2)
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Sesquipedalian

Quote from: landyvlad on January 23, 2019, 07:22:50 PM
About 12 hours ago I updated my test forum with latest nightly from  https://www.simplemachines.org/community/index.php?topic=558451.20

Quote from: Sesquipedalian on January 24, 2019, 12:46:16 AM
Quote from: landyvlad on January 23, 2019, 07:30:12 PM
Ok well I've marked this as "not solv4ed" because 12 hours ago I upgraded my test forum to the latest nightly version, and this behaviour is continuing to occur:

Quote
   Type of error: Undefined

8: Undefined offset: 1
http://www.gsx1400owners.org/test21forum/index.php?action=signup2
/home/gsxowner/public_html/test21forum/Themes/default/GenericControls.template.php (Line 252)
   

Guest
Today at 03:49 am
86.141.5.231
836e3a79517b027159d4b69246cb05ac


Type of error: Undefined

8: Undefined offset: 1
http://www.gsx1400owners.org/test21forum/index.php?action=signup2
/home/gsxowner/public_html/test21forum/Themes/default/GenericControls.template.php (Line 251) 

If you are still getting references to lines 251 and 252, then you are not using the latest version from GitHub.

My guess is that albertlast's nightly build hadn't yet incorporated the latest changes by the time you downloaded.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

albertlast

reason why i recommand to provide the last_commit_* file name,
so that person from the support know which github version is used.

Quote
Also in this version it's important when you provide bugs,
which "version" you use ther for you find a file in the root called "last_commit_<version>" exp: last_commit_de7e49,
so when you open a bug/issue/request provide this number or even better update first to last version.

Sesquipedalian

I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

landyvlad

"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

landyvlad

OK just upgraded and can confirm that - as at Last Commit 4fa7e97  - Recaptcha (v2) in combination with the security questions, is working perfectly !
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Sesquipedalian

I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

TurtleKicker

This seemed the best thread to ask this question:

Is there a technical issue that prevents reCaptcha v3 from being used in SMF 2.1? It seems it would be preferable, as it's less annoying to users.

Or is there something undesirable regarding v3 resulting in a deliberate choice to not use it and only support v2?

Just curious. I have it (v2) working at the moment. Thanks!

live627

I wrote and tested it for v2, the latest at the time.

landyvlad

annoying to users? Ticking one box?

If that annoys them to much they'd probably never post in a forum anyway....
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Advertisement: