flyalaska Posted January 29, 2018 Report Share Posted January 29, 2018 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 Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted January 31, 2018 Moderators Report Share Posted January 31, 2018 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 Quote Link to comment Share on other sites More sharing options...
flyalaska Posted February 1, 2018 Author Report Share Posted February 1, 2018 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. Quote Link to comment Share on other sites More sharing options...
yannis Posted June 27, 2020 Report Share Posted June 27, 2020 On 2/1/2018 at 6:35 AM, flyalaska said: function __construct (missing "s") 😉 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.