Getting reCAPTCHA to work

Permalink Browser Info Environment
I'm obviously missing something here. I have done as instructed concerning getting keys and entering them in the appropriate place in the Dashboard, and have set up to use reCAPTCHA in "Captcha setup" in the Dashboard. My Contact Form (using the sample content of the Fundamental theme) now shows the reCAPTCHA widget as one would hope. When I write a test message and then hit the recaptcha "I'm not a robot" box, I get a fat green tick, as one would hope. But when I hit the Submit button, my form returns an "Incorrect captcha code" error.
I am doing all this on localhost.
I have not made any changes at all to the view.php file or downloaded any source code from Github. I'm unclear as to whether I need to do any of that.
Any help would be greatly appreciated.

Type: Discussion
Status: In Progress
Dushka
View Replies:
Dushka replied on at Permalink Reply
Dushka
Please ignore. I decided to give it a go on my live site, and it works just fine. My localhost must not get along with Google. So I'm a very happy camper. Having done some research on implementing reCAPTCHA in earlier versions of Concrete5, and having seen all the hacking that appears to have been required back then, then all I can say is that we are living in a brave new world. Many thanks to ExchangeCore for this great add-on.
exchangecore replied on at Permalink Reply
exchangecore
Thanks for the review! Glad to hear you were able to get it working. We're looking in to the problem you experienced when trying to run it locally.
BlueFractals replied on at Permalink Reply
BlueFractals
Reviving an old post... I had the same issue when I tried this on localhost.
In RecaptchaController.php, replace the line
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, Config::get('app.curl.verifyPeer'));

with
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

concrete5 Environment Information

# concrete5 Version
Core Version - 5.7.3
Version Installed - 5.7.3
Database Version - 20141219000000

# concrete5 Packages
C5Extras YouTube Channel (2.0.1), ExchangeCore reCAPTCHA (0.9.0), Fundamental (1.0.5), List files from set (1.0.7), Opt-In Free (0.9.13), ProBlog (2.0.4), Raptorize (2.0), Ronyd Expanded Search Bar (2.0), Separator (0.9.2), Spacer (0.9.0), Vivid Carousel (1.0.1), Wave Text (2.0).

# concrete5 Overrides
languages/da_DK, languages/de_DE, languages/el_GR, languages/fi_FI, languages/fr_FR, languages/it_IT, languages/ja_JP, languages/nl_NL, languages/ru_RU, languages/sl_SI, languages/sv_SE, languages/tr_TR

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.19

# Server API
apache2handler

# PHP Version
5.5.19

# PHP Extensions
apache2handler, bcmath, bz2, calendar, Core, ctype, curl, date, dom, ereg, exif, filter, ftp, gd, gettext, hash, iconv, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, odbc, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, Reflection, session, SimpleXML, soap, sockets, SPL, sqlite3, standard, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 2M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 1440
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

Click below to request a refund for License #7706605. Currently unassigned.
Created on Jan 21 2015 at 10:27 pm
.