Recaptha on php7

Trying to get my site to work with php7. No major issues. The recaptcha is giving me some issues. Error on Registration page and Contact page.

 

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ReCaptcha has a deprecated constructor in /home/flyakane/public\_html/phpvms5/core/lib/recaptcha/recaptchalib.php on line 42

Line 42 is a blank space. Everything around that line is the copyright information. Any ideas how to fix this?

I am running phpVMS 5.5.2

Found this: https://github.com/tutsplus/how-to-integrate-google-no-captcha-recaptcha-on-your-website/blob/master/recaptchalib.php

Does your recaptchalib.php look alike? If yes, try to replace this:

function ReCaptcha

with this:

function \_\_contruct

 

1 Like

20 hours ago, servetas said:

Found this: https://github.com/tutsplus/how-to-integrate-google-no-captcha-recaptcha-on-your-website/blob/master/recaptchalib.php

Does your recaptchalib.php look alike? If yes, try to replace this:

function ReCaptcha

with this:

function __contruct

 

Yes, Thank you that worked.

On 2/1/2018 at 6:35 AM, flyalaska said:

function __construct (missing ā€œsā€) šŸ˜‰