G
G
GSmaster2017-02-09 11:02:46
Yii
GSmaster, 2017-02-09 11:02:46

Yii CWebUser-front property not defined - how to win?

I noticed one problem which, as I understand it, manifests itself after the session expires for a logged in user.
I use the standard authorization from the yii blog test application. By the way, yii is the first version but the latest.
Nobody faced?

2017/02/09 10:55:20 [error] [exception.CException] exception 'CException' with message 'Не определено свойство "CWebUser.front".' in /var/www/kefirc/data/framework/base/CComponent.php:130
Stack trace:
#0 /var/www/kefirchik/data/framework/web/auth/CWebUser.php(146): CComponent->__get('front')
#1 /var/www/kefirchik/data/www/sitedrop.info/protected/views/layouts/main.php(49): CWebUser->__get('front')
#2 /var/www/kefirchik/data/framework/web/CBaseController.php(126): require('/var/www/kefirc...')
#3 /var/www/kefirchik/data/framework/web/CBaseController.php(95): CBaseController->renderInternal('/var/www/kefirc...', Array, true)
#4 /var/www/kefirchik/data/framework/web/widgets/CContentDecorator.php(76): CBaseController->renderFile('/var/www/kefirc...', Array, true)
#5 /var/www/kefirchik/data/framework/web/widgets/CContentDecorator.php(54): CContentDecorator->decorate('<div class="con...')
#6 /var/www/kefirchik/data/framework/web/widgets/COutputProcessor.php(44): CContentDecorator->processOutput('<div class="con...')
#7 /var/www/kefirchik/data/framework/web/CBaseController.php(214): COutputProcessor->run()
#8 /var/www/kefirchik/data/framework/web/CBaseController.php(308): CBaseController->endWidget('CContentDecorat...')
#9 /var/www/kefirchik/data/www/sitedrop.info/protected/views/layouts/column1.php(7): CBaseController->endContent()
#10 /var/www/kefirchik/data/framework/web/CBaseController.php(126): require('/var/www/kefirc...')
#11 /var/www/kefirchik/data/framework/web/CBaseController.php(95): CBaseController->renderInternal('/var/www/kefirc...', Array, true)
#12 /var/www/kefirchik/data/framework/web/CController.php(784): CBaseController->renderFile('/var/www/kefirc...', Array, true)
#13 /var/www/kefirchik/data/www/sitedrop.info/protected/controllers/SiteController.php(11): CController->render('index', Array)
#14 /var/www/kefirchik/data/framework/web/actions/CInlineAction.php(49): SiteController->actionIndex()
#15 /var/www/kefirchik/data/framework/web/CController.php(308): CInlineAction->runWithParams(Array)
#16 /var/www/kefirchik/data/framework/web/CController.php(286): CController->runAction(Object(CInlineAction))
#17 /var/www/kefirchik/data/framework/web/CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#18 /var/www/kefirchik/data/framework/web/CWebApplication.php(282): CController->run('index')
#19 /var/www/kefirchik/data/framework/web/CWebApplication.php(141): CWebApplication->runController('site/index')
#20 /var/www/kefirchik/data/framework/base/CApplication.php(185): CWebApplication->processRequest()
#21 /var/www/kefirchik/data/www/sitedrop.info/index.php(20): CApplication->run()
#22 {main}
REQUEST_URI=/
HTTP_REFERER=http://mysite.info/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GSmaster, 2017-02-09
@GSmaster

sort of solved the problem, but it's a bit different - it just logs out the user if he was not active during this period, although the session is issued for a day

'user'=>array(
                'allowAutoLogin'=>true,
    'authTimeout' => 10,   //  здесь в секундах 
    ),

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question