therecluse26 / PHP-Login

A login system built with PHP, MySQL, jQuery and Bootstrap
MIT License
836 stars 442 forks source link

Trying to access array offset on value of type bool #242

Open ravi503 opened 4 years ago

ravi503 commented 4 years ago

php version 7.4 i am receiving error :

Notice: Trying to access array offset on value of type bool in E:\xampp\htdocs\web\new_login_system\login\ajax\checklogin.php on line 21

Notice: Trying to access array offset on value of type bool in E:\xampp\htdocs\web\new_login_system\login\class\loginhandler.php on line 180

Notice: Trying to access array offset on value of type bool in E:\xampp\htdocs\web\new_login_system\login\class\loginhandler.php on line 64

Notice: Trying to access array offset on value of type bool in E:\xampp\htdocs\web\new_login_system\login\class\loginhandler.php on line 69

Notice: Trying to access array offset on value of type bool in E:\xampp\htdocs\web\new_login_system\login\class\loginhandler.php on line 101

Notice: Trying to access array offset on value of type bool in E:\xampp\htdocs\web\new_login_system\login\ajax\checklogin.php on line 34 {"username":"admin054","response":" \n \n ×\n <\/button>\n Wrong Username or Password\n <\/div>"}

OscarKolsrud commented 4 years ago

Hi there, since the system relies on that response you should disable warnings and notices so the JSON becomes valid. Everything should work then (I am running on 7.3)