Login error in blog tutorial

Hello Friends!

I am new to the beautiful Yii Framework. So I am just going through the tutorials and documentation. So I am doing the blog tutorial from starting. So for blog application I made export the database from the blog folder which comes with Yii to MySQL. Again I decided to use Yii User module and for that I made export the user module database to MySQL. Now my problem is that when I am using login in the application it is showing some error like this

Trying to get property of non-object 

I both tried


and also


both failed. So can some one tell me how to solve this. FYI in my database there are two fields like ‘ia_user’ which is imported from the blog folder and ‘ia_users’ which is imported from the Yii User module folder. So is there any thing wrong. Below I am pasting the configuration of main.php file.


// uncomment the following to define a path alias

// Yii::setPathOfAlias('local','path/to/local-folder');

// This is the main Web application configuration. Any writable

// CWebApplication properties can be configured here.

return array(


  'name'=>'My Blog Application',

  // preloading 'log' component


  // autoloading model and component classes




    /*user module starts here*/



    /*user module ends here*/



    // uncomment the following to enable the Gii tool




      'password'=>'Enter Your Password Here',

       // If removed, Gii defaults to localhost only. Edit carefully to taste.





  // application components



      // enable cookie-based authentication


      /*user module starts here*/

      'loginUrl' => array('/user/login'),

      /*user module ends here*/


    // uncomment the following to enable URLs in path-format












    //  'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',


    // uncomment the following to use a MySQL database



      'connectionString' => 'mysql:host=localhost;dbname=tbl_blog',

      'emulatePrepare' => true,

      'username' => 'root',

      'password' => 'root',

      'charset' => 'utf8',

      'tablePrefix'=> 'tbl_',




      // use 'site/error' action to display errors








          'levels'=>'error, warning',


        // uncomment the following to show log messages on web pages









  // application-level parameters that can be accessed

  // using Yii::app()->params['paramName']


    // this is used in contact page




Please help me out.Any help and suggestions will be highly appreciable.

The error message should tell you the line where the exception happens.

Take a look at the source which object is not instanciated.