Error on login
Rainwod-cloud opened this issue · 1 comments
Rainwod-cloud commented
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
Rainwod-cloud commented
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