kishor10d / Admin-Panel-User-Management-using-CodeIgniter

Admin Panel User Management Demo - CodeIgniter + AdminLTE Theme
http://cias.codeinsect.com
GNU General Public License v3.0
334 stars 244 forks source link

Error on login #76

Closed Rainwod-cloud closed 4 years ago

Rainwod-cloud commented 4 years ago

When i try login i see this error

An uncaught Exception was encountered

Type: Error

Message: Call to a member function real_escape_string() on bool

Filename: D:\javier\gallery\system\database\drivers\mysqli\mysqli_driver.php

Line Number: 393

Backtrace:

File: D:\javier\gallery\application\models\Login_model.php
Line: 23
Function: where

File: D:\javier\gallery\application\controllers\Login.php
Line: 66
Function: loginMe

File: D:\javier\gallery\index.php
Line: 315
Function: require_once

phpversion 7.4.7 imagen

Rainwod-cloud commented 4 years ago

I have found the solution, for my case, and in all the models that work in the admin panel in the different classes it is only necessary to add this code in the constructor of each model including the User_model and the Login_Model parent::__construct(); $this->load->database(); working on php7.4.7 and mysql 5.8.20