Welcome Guest, Not a member yet? Register   Sign In
Weird error when using different hosting server .. Need help .. Thanks you
#1

[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 ?
#2

[eluser]Jimmy - IND[/eluser]
Server info
Operating system Linux
PHP version 5.2.9
MySQL version 5.0.81-community




Theme © iAndrew 2016 - Forum software by © MyBB