# Preventative Maint in Recaptcha/recaptchalib.php

**URL:** <https://forum.phpvms.net/t/preventative-maint-in-recaptcha-recaptchalib-php/11492>\
**Category:** Code Snippets\
**Created:** [December 11, 2016, 5:14am UTC](https://forum.phpvms.net/t/preventative-maint-in-recaptcha-recaptchalib-php/11492 "2016-12-11T05:14:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TAV1702](https://forum.phpvms.net/user_avatar/forum.phpvms.net/tav1702/32/41_2.png) [@TAV1702](https://forum.phpvms.net/u/TAV1702)\
**Post date:** [December 11, 2016, 5:14am UTC](https://forum.phpvms.net/t/preventative-maint-in-recaptcha-recaptchalib-php/11492/1 "2016-12-11T05:14:33Z")

</div>

Unless google comes out with a quick fix, here is a fix for an error you are, not a matter of if but when, going to see it.

PLEASE RESEARCH THIS FIRST!!! DO NOT USE UNLESS YOU ARE SURE! I WILL NOT BE RESPONSIBLE FOR YOUR SECURITY OR WEBSITE.

I am not a pro. I just read this on stackoverflow and it worked.

line 42 reads:

function ReCaptcha

It needs to be :

public function \_\_construct

to fix this: 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 C:\wamp\www\phpvms\core\lib\recaptcha\recaptchalib.php on line _42_

That error is a result of running phpvms on php 7 and mysql 5.7 So far everything else is working. I bet a dime to a dozne doughnuts I install modules and it fizzles out like there is no tomorrow.
