Xtremer360 Posted August 20, 2011 Share Posted August 20, 2011 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 More sharing options...
cassey071 Posted September 8, 2011 Share Posted September 8, 2011 i thnk the error is not in the controller try to check your model., just simply trap ur "ID" use isset for that code Link to comment https://forums.phpfreaks.com/topic/245308-ci-login-errors/#findComment-1266663 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.