I've made an application in CodeIgniter
this working in locally and now I want to try in on a hosting: hostinger
. If you want see, check this.
Now the problem's that when the I perform the installation of the library I get the error on the bottom from the code below:
public function get_admin_role_id()
{
$result = intval($this->db->get_where('ea_roles', array('slug' => DB_SLUG_ADMIN))->row()->id);
print_r($result);
return $result;
}
A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: models/admins_model.php
Line Number: 372
Now this code should be returned the id roles of admin that is setted to default to 1
. Now the installation is also involved in creating the structure of the tables and logging in phpMyAdmin seems that the database is still empty, perhaps this could be the cause of the problem? Can someone help me understand what's going on?