PHP-Login icon indicating copy to clipboard operation
PHP-Login copied to clipboard

Trying to access array offset on value of type bool

Open ravi503 opened this issue 5 years ago • 1 comments

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>"}

ravi503 avatar Dec 31 '19 11:12 ravi503

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)

OscarKolsrud avatar Jan 12 '20 11:01 OscarKolsrud