Problem with google recaptcha v2
I got a second server recently and I am migrating a handful of sites off of the old box. Many of them use contact us forms with Google recaptcha v2. They all worked flawlessly on the old box but it seems that the recaptcha test fails on the new server.
Contact us page code:
In the head section ->
In thebody secction ->
" method="post" name="feedback">
...
...
...
In the contact.cgi ->
sub check_captcha {
use LWP::UserAgent;
$capurl = '
-
Hey hey! I'm personally not going to be much help for this issue, but I've moved this over to the Developer forum for greater visibility. 0 -
Spoke too soon. I think the issue is with LWP:UserAgent. This module is required for Google recaptcha v2. So I go to WHM -> Software -> Module Installers, Search for LWP::UserAgent and click Install. Results are... Installing Perl Module "LWP::UserAgent" Checking C compiler....C compiler (/usr/bin/gcc) OK (cached Sat Oct 2 05:00:18 2021) Tuned C compiler (/usr/bin/gcc -march=native) OK (cached Sat Oct 2 05:00:18 2021)....Done Method: Using cpanminus LWP::UserAgent is up to date. (6.57) When I go to shell and run instmodsh and then l I get this response Installed modules are: CPAN CPAN::Meta::Requirements CPAN::Meta::YAML Canary::Stability Encode Expect ExtUtils::MakeMaker HTTP::Message HTTP::Tiny IO::Tty JSON::XS Net::HTTP Perl Try::Tiny Types::Serialiser YAML::Syck common::sense libwww::perl local::lib version I see that LWP::UserAgent is not listed as an installed module. How do I ensure that this module is installed? 0 -
Welll I foudn a work around. I rewrote the php form page to call itself an processed all the input on page load. Got rid of the cgi completely. 0 -
I'm glad you were able to find a good workaround! 0
Please sign in to leave a comment.
Comments
4 comments