[eluser]Jimmy - IND[/eluser]
I'm using CI 1.7.1 and Dx_auth
getting this
Fatal error: Call to a member function on a non-object in /home/symaindo/public_html/application/libraries/DX_Auth.php on line 835
but I have no error in local server .. only on the uploaded server I'm getting this error ....
the Code is
Code:
// Load Models
$this->ci->load->model('dx_auth/users', 'users');
$this->ci->load->model('dx_auth/user_temp', 'user_temp');
$this->ci->load->model('dx_auth/login_attempts', 'login_attempts');
// Get which function to use based on config
if ($this->ci->config->item('DX_login_using_username') AND $this->ci->config->item('DX_login_using_email'))
{
//$get_user_function = 'get_login';
835 $query = $this->ci->users->get_login($login);
}
else if ($this->ci->config->item('DX_login_using_email'))
{
//$get_user_function = 'get_user_by_email';
$query = $this->ci->users->get_user_by_email($login);
}
else
{
//$get_user_function = 'get_user_by_username';
$query = $this->ci->users->get_user_by_username($login);
}
and also It will have error for
Code:
$data['roles'] = $this->roles->get_all()->result();
and it need to be change too
Code:
$d_roles = $this->roles->get_all();
$data['roles'] = $d_roles->result();
but everything is fine on local test server ....
Can anyone help with this ?