Yii Framework Forum: Authentication Issues After Upgrade To .13 - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Authentication Issues After Upgrade To .13 Rate Topic: -----

#1 User is offline   emware 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 17-July 12

Posted 11 January 2013 - 04:43 PM

Hello everyone,

I just updated from 1.1.12 to 1.1.13 and testing my website.
it seems to be working unless all is concerned about authentication.
When i login (tested multiple account) and try to request any action that check roles application return this stack error in log:

2013/01/11 22:36:21 [error] [php] Illegal string offset 'userId' (/Users/emware/Documents/Projects/windowhotel/source/framework/web/auth/CPhpAuthManager.php:73)
Stack trace:
#0 /Users/emware/Documents/Projects/windowhotel/source/framework/web/CBaseController.php(126): require()
#1 /Users/emware/Documents/Projects/windowhotel/source/framework/web/CBaseController.php(95): ProfileController->renderInternal()
#2 /Users/emware/Documents/Projects/windowhotel/source/framework/web/CController.php(784): ProfileController->renderFile()
#3 /Users/emware/Documents/Projects/windowhotel/source/protected/controllers/ProfileController.php(482): ProfileController->render()
#4 /Users/emware/Documents/Projects/windowhotel/source/framework/web/actions/CInlineAction.php(49): ProfileController->actionIndex()
#5 /Users/emware/Documents/Projects/windowhotel/source/framework/web/CController.php(308): CInlineAction->runWithParams()
#6 /Users/emware/Documents/Projects/windowhotel/source/framework/web/filters/CFilterChain.php(133): ProfileController->runAction()
#7 /Users/emware/Documents/Projects/windowhotel/source/framework/web/filters/CFilter.php(40): CFilterChain->run()
#8 /Users/emware/Documents/Projects/windowhotel/source/framework/web/CController.php(1145): CAccessControlFilter->filter()
#9 /Users/emware/Documents/Projects/windowhotel/source/framework/web/filters/CInlineFilter.php(58): ProfileController->filterAccessControl()
#10 /Users/emware/Documents/Projects/windowhotel/source/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter()
#11 /Users/emware/Documents/Projects/windowhotel/source/framework/web/CController.php(291): CFilterChain->run()
#12 /Users/emware/Documents/Projects/windowhotel/source/framework/web/CController.php(265): ProfileController->runActionWithFilters()
#13 /Users/emware/Documents/Projects/windowhotel/source/framework/web/CWebApplication.php(282): ProfileController->run()
#14 /Users/emware/Documents/Projects/windowhotel/source/framework/web/CWebApplication.php(141): CWebApplication->runController()
#15 /Users/emware/Documents/Projects/windowhotel/source/framework/base/CApplication.php(169): CWebApplication->processRequest()
#16 /Users/emware/Documents/Projects/windowhotel/source/index.php(11): CWebApplication->run()
REQUEST_URI=/profile


I looked around the code to find a solution.
Site seems to be fixed if i edit the file CPhpAuthManager.php and initialize $userid = array();

Any suggestion to find out the right solution?


Thanks in advance
Emware.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users