google-code-export / yii-user

Automatically exported from code.google.com/p/yii-user
1 stars 1 forks source link

Trying to get property of non-object #57

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Typing URL " http://localhost/roopesh/index.php?r=user" after the 
configuration of user modules and following all steps

What is the expected output? What do you see instead?
Index file of user module

What version of the product are you using? On what operating system?
yii-user-0.3-r69.zip

Please provide any additional information below.
 this is my application log

2011/02/12 06:10:10 [trace] [system.CModule] Loading "log" application component
in C:\wamp\www\roopesh\index.php (13)
2011/02/12 06:10:10 [trace] [system.CModule] Loading "request" application 
component
in C:\wamp\www\roopesh\index.php (13)
2011/02/12 06:10:10 [trace] [system.CModule] Loading "urlManager" application 
component
in C:\wamp\www\roopesh\index.php (13)
2011/02/12 06:10:10 [trace] [system.base.CModule] Loading "user" module
in C:\wamp\www\roopesh\index.php (13)
2011/02/12 06:10:10 [trace] [system.CModule] Loading "db" application component
in C:\wamp\www\roopesh\protected\modules\user\controllers\DefaultController.php 
(18)
in C:\wamp\www\roopesh\index.php (13)
2011/02/12 06:10:10 [trace] [system.db.CDbConnection] Opening DB connection
in C:\wamp\www\roopesh\protected\modules\user\controllers\DefaultController.php 
(18)
in C:\wamp\www\roopesh\index.php (13)
2011/02/12 06:10:10 [trace] [system.db.CDbCommand] Querying SQL: SHOW COLUMNS 
FROM `tbl_users`
in C:\wamp\www\roopesh\protected\modules\user\controllers\DefaultController.php 
(18)
in C:\wamp\www\roopesh\index.php (13)
2011/02/12 06:10:10 [trace] [system.db.CDbCommand] Querying SQL: SHOW CREATE 
TABLE `tbl_users`
in C:\wamp\www\roopesh\protected\modules\user\controllers\DefaultController.php 
(18)
in C:\wamp\www\roopesh\index.php (13)
2011/02/12 06:10:10 [trace] [system.CModule] Loading "messages" application 
component
in C:\wamp\www\roopesh\protected\modules\user\UserModule.php (117)
in C:\wamp\www\roopesh\protected\modules\user\views\user\index.php (3)
in C:\wamp\www\roopesh\protected\modules\user\controllers\DefaultController.php 
(22)
2011/02/12 06:10:10 [trace] [system.CModule] Loading "user" application 
component
in C:\wamp\www\roopesh\protected\modules\user\UserModule.php (150)
in C:\wamp\www\roopesh\protected\modules\user\views\user\index.php (8)
in C:\wamp\www\roopesh\protected\modules\user\controllers\DefaultController.php 
(22)
2011/02/12 06:10:10 [trace] [system.CModule] Loading "session" application 
component
in C:\wamp\www\roopesh\protected\modules\user\UserModule.php (150)
in C:\wamp\www\roopesh\protected\modules\user\views\user\index.php (8)
in C:\wamp\www\roopesh\protected\modules\user\controllers\DefaultController.php 
(22)
2011/02/12 06:10:10 [trace] [system.db.ar.CActiveRecord] User.findByPk()
in C:\wamp\www\roopesh\protected\modules\user\UserModule.php (202)
in C:\wamp\www\roopesh\protected\modules\user\UserModule.php (154)
in C:\wamp\www\roopesh\protected\modules\user\views\user\index.php (8)
2011/02/12 06:10:10 [trace] [system.db.CDbCommand] Querying SQL: SELECT id, 
username, email, createtime, lastvisit, superuser, status FROM `tbl_users` `t` 
WHERE (status=1) AND (`t`.`id`=0) LIMIT 1
in C:\wamp\www\roopesh\protected\modules\user\UserModule.php (202)
in C:\wamp\www\roopesh\protected\modules\user\UserModule.php (154)
in C:\wamp\www\roopesh\protected\modules\user\views\user\index.php (8)
2011/02/12 06:10:10 [error] [php] Trying to get property of non-object 
(C:\wamp\www\roopesh\protected\modules\user\UserModule.php:154)
Stack trace:
#0 C:\wamp\www\yii-install\framework\web\CBaseController.php(88): 
DefaultController->renderInternal()
#1 C:\wamp\www\yii-install\framework\web\CController.php(833): 
DefaultController->renderFile()
#2 C:\wamp\www\yii-install\framework\web\CController.php(746): 
DefaultController->renderPartial()
#3 
C:\wamp\www\roopesh\protected\modules\user\controllers\DefaultController.php(22)
: DefaultController->render()
#4 C:\wamp\www\yii-install\framework\web\actions\CInlineAction.php(57): 
DefaultController->actionIndex()
#5 C:\wamp\www\yii-install\framework\web\CController.php(300): 
CInlineAction->run()
#6 C:\wamp\www\yii-install\framework\web\CController.php(278): 
DefaultController->runAction()
#7 C:\wamp\www\yii-install\framework\web\CController.php(257): 
DefaultController->runActionWithFilters()
#8 C:\wamp\www\yii-install\framework\web\CWebApplication.php(328): 
DefaultController->run()
#9 C:\wamp\www\yii-install\framework\web\CWebApplication.php(121): 
CWebApplication->runController()
#10 C:\wamp\www\yii-install\framework\base\CApplication.php(155): 
CWebApplication->processRequest()
#11 C:\wamp\www\roopesh\index.php(13): CWebApplication->run()
REQUEST_URI=/roopesh/index.php?r=user
in C:\wamp\www\roopesh\protected\modules\user\UserModule.php (154)
in C:\wamp\www\roopesh\protected\modules\user\views\user\index.php (8)
in C:\wamp\www\roopesh\protected\modules\user\controllers\DefaultController.php 
(22)
2011/02/12 06:10:10 [trace] [system.CModule] Loading "errorHandler" application 
component
in C:\wamp\www\roopesh\protected\modules\user\UserModule.php (154)
in C:\wamp\www\roopesh\protected\modules\user\views\user\index.php (8)
in C:\wamp\www\roopesh\protected\modules\user\controllers\DefaultController.php 
(22)

Original issue reported on code.google.com by roopeshr...@gmail.com on 12 Feb 2011 at 6:16

GoogleCodeExporter commented 9 years ago
it is necessary to install hash functions for your server or  to use base 
functions (md5,sha1)

Original comment by mish...@gmail.com on 16 Feb 2011 at 3:27