Jump to content

CI Login Errors


Xtremer360

Recommended Posts

For some reason with the following code I'm getting these error messages after a successful login.

 

A PHP Error was encountered

 

Severity: Notice

 

Message: Undefined variable: id

 

Filename: controllers/cpanel.php

 

Line Number: 19

A PHP Error was encountered

 

Severity: Warning

 

Message: Cannot modify header information - headers already sent by (output started at /home/xtremer/public_html/system/core/Exceptions.php:170)

 

Filename: core/Common.php

 

Line Number: 409

A Database Error Occurred

 

Error Number: 1066

 

Not unique table/alias: 'users'

 

SELECT * FROM (`users`, `users`) JOIN `user_profiles` ON `users`.`id` = `user_profiles`.`user_id`

 

Filename: /home/xtremer/public_html/kowmanager/models/cpanel/dashboard.php

 

Line Number: 38

 

 

<?php
class cpanel extends CI_Controller
{
function __construct()
{
	parent::__construct();

	$this->load->helper(array('form', 'url'));
	$this->load->library('form_validation');
	$this->load->library('security');
	$this->load->library('tank_auth');
	$this->lang->load('tank_auth'); 
        $this->load->model('/cpanel/Dashboard');        
}

function index()
{
        $data = $this->Dashboard->get_user_info($id);
        
    $this->template->set_layout('cpanel')->enable_parser(false);
        $this->template->set_partial('header', 'partials/header');  
        $this->template->set_partial('sidebar', 'partials/sidebar');  
        $this->template->set_partial('content', 'partials/content');      
        $this->template->set_partial('footer', 'partials/footer');
        $this->template->build('/cpanel/index', $data);
}

}
?>

Link to comment
Share on other sites

  • 3 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.