Page 1 of 1

Login Tools PHP Error $newpassword

Posted: Wed Mar 14, 2018 6:33 pm
by cjcollinson
Hi,
I'm using the login tools demo and it fails to send a email notification when a new user signs up and I get the following php error when I try to reset the password using the password recovery tools.

Any help would be appreciated

[14-Mar-2018 18:21:01 UTC] PHP Notice: Undefined variable: newpassword in /home/lightnin/public_html/englishtaekwondo.co.uk/logindemo/forgot_password.php on line 36

Re: Login Tools PHP Error $newpassword

Posted: Wed Mar 14, 2018 6:54 pm
by Pablo
This usually means that the PHP warning level on the server is set high, so it checks all variables.

You can either turn off error reporting on the server or add this code at the start of the page:

Code: Select all

<?php
$newpassword = '';
?>

Re: Login Tools PHP Error $newpassword

Posted: Tue Mar 20, 2018 10:34 pm
by cjcollinson
Hi

Thanks for the response, did you mean the start of each php page ?

Thanks for your help

BR

Chris

Re: Login Tools PHP Error $newpassword

Posted: Wed Mar 21, 2018 6:58 am
by Pablo
I meant the start of the page with the 'password recovery' object.