Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
2k views
in Plugins by

I everyboby,

My name is Nick, I'm a professor in Trois-Rivieres University (Quebec). I operate a Q&A site since a long time ago for my students: http://www.uqtr.ca/opticq2a/ . I'm running 1.6.1 version.

I use a prior version of Google reCAPTCHA and I have some problems with robots.

I found this new pluging: http://www.question2answer.org/qa/41918/update-plugin-google-recaptcha-v0-1?show=41918#q41918

Thanks a lot to try to help us to install the new Google reCAPTCHA on your Q&A site. I Install this Plugin and I see the new Google reCAPTCHA on my forms (ask Question, Suscribe, etc.)

The problem is when the form is complete (after the "I'm not a robot") and press the OK button on my form, I have the error/fails message:

"Warning: file_get_contents() [function.file-get-contents]: SSL: fatal protocol error in/web/opticq2a/qa-plugin/google-recaptcha/recaptchalib.php on line 94

Fatal error: Call to undefined function json_decode() in /web/opticq2a/qa-plugin/google-recaptcha/recaptchalib.php on line 126"

Same message with Chrome and Safari.

Can you help me please ?

Thanks a lot 

#Communaute

Q2A version: 1.6.1

1 Answer

+2 votes
by

The first issue appears to be a problem with Microsoft IIS. See the warning in the red box here: http://php.net/manual/en/function.file-get-contents.php

For the second error, it appears you are running a very old version of PHP (older than 5.2) which doesn't have json_decode. One option if you are on PHP 5.1 is to upgrade to Q2A 1.7 which uses the new reCAPTCHA and has a polyfill for the json functions.

I think the best option would be to upgrade your PHP version first and see if that solves both the issues.

by
thanks Scott. I will upgrade.
by
What version are you running currently?
...