Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error on Init (on remember user login)
#1
Hi, there is a bug in my system. 

Centos 7
php 7
MySQL 5.6.35

When I install myt, then ok
When I start myt all ok,
When I login and remenber username all ok, 
When I use myt all ok,
but if I left my session open many hours and I going to the myt web the app show this error (see image).

The solution (for me) is remove cookie: b2021..........ca3e5d

Error image: https://ufile.io/27463 or see attachment

Error log:
[Wed Mar 22 08:33:22.564513 2017] [:error] [pid 3798] [client client_ip:35482] PHP Notice:  Undefined property: CWebApplication::$user in /DATA/www/public/myt/protected/extensions/FlashMessage.php on line 24, referer: http://server_ip:49999/

[Wed Mar 22 08:33:22.564674 2017] [:error] [pid 3798] [client client_ip:35482] PHP Fatal error:  Uncaught Error: Call to a member function getFlashes() on null in /DATA/www/public/myt/protected/extensions/FlashMessage.php:24\nStack trace:\n#0 /DATA/www/public/myt/framework/web/CBaseController.php(181): FlashMessage->run()\n#1 /DATA/www/public/myt/themes/fluid/views/layouts/column1.php(13): CBaseController->widget('application.ext...')\n#2 /DATA/www/public/myt/framework/web/CBaseController.php(126): require('/DATA/www/publi...')\n#3 /DATA/www/public/myt/framework/web/CBaseController.php(95): CBaseController->renderInternal('/DATA/www/publi...', Array, true)\n#4 /DATA/www/public/myt/framework/web/CController.php(784): CBaseController->renderFile('/DATA/www/publi...', Array, true)\n#5 /DATA/www/public/myt/protected/controllers/SiteController.php(43): CController->render('error', Array)\n#6 /DATA/www/public/myt/framework/web/actions/CInlineAction.php(49): SiteController->actionError()\n#7 /DATA/www/public/myt/framework/web/CController.php(308): CInlineAction->runWithParams(Array)\n#8 /DATA/www/public/myt/framework/web in /DATA/www/public/myt/protected/extensions/FlashMessage.php on line 24, referer: http://server_ip:49999/


Attached Files Thumbnail(s)
   
Reply
#2
Temporaly.

Edit /myt/protected/views/site/login.php

Coment field remenber:

<?php echo $form->checkbox($model, 'rememberMe',array('disabled'=>true)); ?>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)