Yii Framework Forum: Yii User Manager - Yii Framework Forum

Jump to content

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

Yii User Manager Rate Topic: -----

#1 User is offline   markvr 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 37
  • Joined: 17-June 12

Posted 17 June 2012 - 09:54 AM

I'm attempting to install YUM (http://www.yiiframew...ser-management/) but after running through the install steps, and attempting to login, I get the message:

Fatal error: Call to a member function get() on a non-object in E:\websites\yii\public\protected\modules\user\models\YumUser.php on line 365

Any one any ideas...?!
0

#2 User is offline   bluyell 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 222
  • Joined: 28-October 11

Posted 17 June 2012 - 11:22 AM

the line 365 on my yiiuser.php is about: "$relations = Yii::app()->cache->get('yum_user_relations');"

Your errors said that cant obtain a "get" member in a non-object, in this case the "non-object" would be the Yii::app()->cache who is maybe null because you're not configuring the CACHE in your YUM instalation, so yii::app()->cache is null and throws an exception when trying to get something from it.

please ensure the following setup piece code is in your main config setup file:

'components'=>array(

'cache' => array('class' => 'system.caching.CDummyCache'),
1

#3 User is offline   Samuel K. 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 28-November 10

Posted 16 November 2012 - 09:23 AM

View Postbluyell, on 17 June 2012 - 11:22 AM, said:

the line 365 on my yiiuser.php is about: "$relations = Yii::app()->cache->get('yum_user_relations');"

Your errors said that cant obtain a "get" member in a non-object, in this case the "non-object" would be the Yii::app()->cache who is maybe null because you're not configuring the CACHE in your YUM instalation, so yii::app()->cache is null and throws an exception when trying to get something from it.

please ensure the following setup piece code is in your main config setup file:

'components'=>array(

'cache' => array('class' => 'system.caching.CDummyCache'),


Thank you very much, this has helped me.
...
I changed a moment ago
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