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
https://forums.phpfreaks.com/topic/245308-ci-login-errors/
Share on other sites

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.